SharpLeaf Reference > PageElement Abstract Class

PageElement Abstract Class

The abstract class for elements that can belong to a PageLayout.

PageElement objects may also be drawn directly onto a SharpLeaf page with the SharpLeaf.DrawElement method.

Page Element derived classes

Frame : PageElement Class
Defines a region on the page into which text can flow. The frame can be invisible, or have a BoxStyle and a gutter. It also controls whether content should be clipped or not, and whether flow should automatically skip to next Frame.
TextBlock : PageElement Class
Arbitrary text to add to a page layout, with optional parameters substitution. Text can optionally be wrapped, and angled if the two points are different, in which case it is drawn along the given line.
ImageBlock : PageElement Class
Picture to add to a page layout. Image can optionally be scaled or stretched to fit a bounding box.
Box : PageElement Class
Rectangle to add to a page layout, possibly filled and shadowed.
Rule : PageElement Class
Simpe line to add to a page layout.

Send comments on this topic
© Dyalog Ltd 2016