Namespace TallComponents.PDF.Layout.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 DefaultStrikeOut
If the text is default struck through. (default = false)
Boolean DefaultUnderline
If the text is default underlined. (default = false)
Double FirstLineIndentation
Indentation of first line.
ReadDirection FlowDirection
The read direction of text elements (fragments).
FragmentCollection Fragments
Collection of text fragments.
Double HangIndentation
Indentation of all except first line.
Double 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 HorizontalAlignment
The horizontal alignment.
Boolean Justified
Whether text is justified.
Double LineSpacing
Extra spacing between lines in points.
Double MaxFontSize
The maximum font size the auto-sized text will be (default = 24).
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)
TabStopCollection TabStops
Allows you to define points to jump to when a tab character is encountered.
String Text
The rich text string to display formatted as xhtml.
Double Width
Width of this SimpleXhtmlShape.