Skip to content

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
FirstLineIndentationIndentation of first line.
FragmentsCollection of text fragments.
HangIndentationIndentation of all except first line.
HeightHeight 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).
HorizontalAlignmentThe horizontal alignment.
JustifiedWhether text is justified.
JustifyLastLineWhether last line of the text is justified.
LineSpacingExtra spacing between lines in points.
MaxFontSizeThe maximum font size the auto-sized text will be (default = 24).
MeasuredHeightThe 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.
MeasuredWidthThe 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.
ReadDirectionThe read direction of text elements (fragments).
TabStopsAllows you to define points to jump to when a tab character is encountered.
WidthWidth of this MultilineTextShape.