Class Container

Namespace
SoftZenPdf.Layout
Assembly
SoftZenPdf.dll

A box around other blocks, with margins, padding, a border and a background, like an HTML div.

public sealed class Container : Block
Inheritance
Container
Inherited Members

Properties

Background

The background colour, or null for none.

Blocks

The blocks inside, laid out top to bottom.

Borders

The border, or null for none.

KeepTogether

Keep the whole box on one page if it fits on one.

Margin

Space outside the border, in points. Top and bottom work like paragraph spacing.

Padding

Space between the border and the content, in points.

PageBreakBefore

Start the box on a new page.

Width

The width of the box (border included), in points; null fills the available width.