Namespace TallComponents.PDF.Layout.Shapes
Class TextShape
Used to add a single-line text to a layer.
Syntax
public class TextShape
: ContentShape
Constructors
TextShape()
Create an empty text shape.
TextShape(Double,Double,String,Font,Double)
Create a text shape with given properties.
TextShape(Double,Double,String,Font,Double,Color)
Create a text shape with given properties.
Properties
Boolean Bold
If set, the text appears bold. Note that the boldness is simulated by using a thicker stroke.
It is preferable to use a bold font if possible. E.g., use arialbd.ttf for bold Arial and arial.ttf for
regular Arial. This property is ignored if applied to a Bold font.
RectF BoundingBox
The size of the text shape after rotation is applied.
Double CharacterSpacing
Get or set the character spacing. This is the extra spacing (in points) occupied by each character. Default is 0 (no extra spacing).
ReadDirection Direction
Read direction of this text (left-to-right or right-to-left).
Font Font
Text is typeset using this font.
Double FontSize
Size of font in points.
Double Height
The measured height is the space that will be used when drawing this shape on the page.
Boolean Italic
If set, the text appears italic. Note that the italicization is simulated by skewing the text slightly.
It is preferable to use an italic font if possible. E.g. use ariali.ttf for italic Arial and arial.ttf for
regular Arial. This property is ignored if applied to an Italic font.
String Text
Display this text.
Color TextColor
(Foreground) color of text.
Double Width
The measured width is the space that will be used when drawing this shape on the page.