Namespace TallComponents.PDF.Shapes
Class SimpleXhtmlShape
Renders one or more lines of text with "simple" xhtml markup.
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 of the shape. You can set layout properties such as alignment and indentation.
The origin (X and Y properties) is the top-left position.
Syntax
public class SimpleXhtmlShape : ContentShape
Constructors
Properties
Boolean DefaultBold
If the text is default bold. (default = false)
Color DefaultColor
The default text color (default = black)
Font DefaultFont
The default font. (default Arial)
Double DefaultFontSize
The default font size. (default 12)
Boolean DefaultItalic
If the text is default italic. (default = false)
Boolean DefaultJustified
Whether text is justified. (default = false)
Double DefaultLeftMargin
The default left margin (default 0).
Double DefaultLineHeight
Minimal spacing between 2 lines (default 1.2).
Boolean DefaultStrikeOut
If the text is default striked through. (default = false)
Double DefaultTextIndent
Indentation of first text line. (default = 0)
Boolean DefaultUnderline
If the text is default underlined. (default = false)
HorizontalAlignment HorizontalAlignment
The horizontal alignment.
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 current text available, it respects the Width property
and other properties.
Boolean Multiline
Specifies whether the text may span multiple lines. (default true)
String Text
The rich text string to display formatted as xhtml.
Double Width
Width of this SimpleXhtmlShape.