Skip to content

TallComponents.UnoPdf.Client

TallComponents.UnoPdf.Client.Models.Pdf.Shapes

SimpleXhtmlShapeModel Class

Renders one or more lines of text with "simple" xhtml markup.

csharp
public class SimpleXhtmlShapeModel : TallComponents.UnoPdf.Client.Models.Pdf.Shapes.ShapeModel

Inheritance System.Object 🡒 ShapeModel 🡒 SimpleXhtmlShapeModel

Remarks

For the SimpleXhtml shape the formatting is restricted to what is possible in rich text
form fields in PDF. In PDF, rich text strings consist of XML that is a subset of the XFA text specification,
which is itself a subset of the XHTML 1.0 specification.

Text will wrap at the specified Width of the shape.
You can set layout properties such as alignment and indentation.

The origin (X and Y properties) is the top-left position.

Properties
DefaultBoldThe default text color (default = black)
DefaultFontThe default font. (default Arial)
DefaultFontSizeThe default font size. (default 12)
DefaultItalicIf the text is default italic. (default = false)
DefaultJustifiedWhether text is justified. (default = false)
DefaultLeftMarginThe default left margin (default 0).
DefaultLineHeightMinimal spacing between 2 lines (default 1.2).
DefaultStrikeOutIf the text is default struck through. (default = false)
DefaultTextIndentIndentation of first text line. (default = 0)
DefaultUnderlineIf the text is default underlined. (default = false)
HorizontalAlignmentThe horizontal alignment.
MeasuredHeightThe measured height is the space that will be used when drawing this shape on the page.
This height is calculated with the current text available, it respects the Width property
and other properties.
MultilineSpecifies whether the text may span multiple lines. (default true)
TextThe rich text string to display formatted as xhtml.
WidthWidth of this SimpleXhtmlShape.