Namespace TallComponents.PDF.Layout.Shapes
Class MultilineTextShape
The MultilineTextShape allows you to stamp text that is wrapped given a certain maximum line width. The text is stored in 1 or more fragments. You can set layout properties such as alignment and indentation.
The origin (X and Y properties) is the top-left position.
Use a LineBreakFragment to insert a newline between two fragments.
Syntax
public class MultilineTextShape
: ContentShape
Constructors
Properties
Double FirstLineIndentation
Indentation of first line.
ReadDirection FlowDirection
The read direction of text elements (fragments).
FragmentCollection Fragments
Collection of text fragments.
Double HangIndentation
Indentation of all except first line.
Double Height
Height of this MultilineTextShape, when the contents should be auto-sized.
The content will be auto-sized when the following constraints are true: 1) Only one fragment is present; 2) The font-size in that fragment is specified as zero (0).
HorizontalAlignment HorizontalAlignment
The horizontal alignment.
Boolean Justified
Whether text is justified.
Double LineSpacing
Extra spacing between lines in points.
Double MaxFontSize
The maximum font size the auto-sized text will be (default = 24).
Double MeasuredHeight
The measured height is the space that will be used when drawing this shape on the page.
This height is calculated with the fragments available in the fragments collection,
it respects the Width property and font-sizes used in the fragments.
TabStopCollection TabStops
Allows you to define points to jump to when a tab character is encountered.
Double Width
Width of this MultilineTextShape.