Appearance
TallComponents.UnoPdf.Client
TallComponents.UnoPdf.Client.Models.Pdf.Shapes
MultilineTextShapeModel Class
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.
csharp
public class MultilineTextShapeModel : TallComponents.UnoPdf.Client.Models.Pdf.Shapes.ShapeModel
Inheritance System.Object 🡒 ShapeModel 🡒 MultilineTextShapeModel
Remarks
The origin (X and Y properties) is the top-left position.
Use a LineBreakFragment to insert a newline between two fragments.
Properties | |
---|---|
FirstLineIndentation | Indentation of first line. |
Fragments | Collection of text fragments. |
HangIndentation | Indentation of all except first line. |
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 | The horizontal alignment. |
Justified | Whether text is justified. |
JustifyLastLine | Whether last line of the text is justified. |
LineSpacing | Extra spacing between lines in points. |
MaxFontSize | The maximum font size the auto-sized text will be (default = 24). |
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. |
MeasuredWidth | The measured width is the space that will be used when drawing this shape on the page. This width is calculated with the fragments available in the fragments collection, it respects the Width property and font-sizes used in the fragments. |
ReadDirection | The read direction of text elements (fragments). |
TabStops | Allows you to define points to jump to when a tab character is encountered. |
Width | Width of this MultilineTextShape. |