Appearance
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 | |
---|---|
DefaultBold | The default text color (default = black) |
DefaultFont | The default font. (default Arial) |
DefaultFontSize | The default font size. (default 12) |
DefaultItalic | If the text is default italic. (default = false) |
DefaultJustified | Whether text is justified. (default = false) |
DefaultLeftMargin | The default left margin (default 0). |
DefaultLineHeight | Minimal spacing between 2 lines (default 1.2). |
DefaultStrikeOut | If the text is default struck through. (default = false) |
DefaultTextIndent | Indentation of first text line. (default = 0) |
DefaultUnderline | If the text is default underlined. (default = false) |
HorizontalAlignment | The horizontal alignment. |
MeasuredHeight | The 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. |
Multiline | Specifies whether the text may span multiple lines. (default true) |
Text | The rich text string to display formatted as xhtml. |
Width | Width of this SimpleXhtmlShape. |