Namespace TallComponents.PDF.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(String,Font,Double)
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 preferrable 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.
RectangleF BoundingBox
The size of the textshape after rotation is applied.
Brush Brush
The brush that is used to fill this text. (default = Black - SolidBrush)
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).
Boolean DoubleUnderline
Get or set if the text shape is rendered with a double underline.
Font Font
Text is typeset using this font.
Double FontSize
Size of font in points.
Boolean Italic
If set, the text appears italic. Note that the italicness is simulated by skewing the text slightly.
It is preferrable 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.
Double[] KerningInfo
Gets or sets the kerning info.
Double MeasuredHeight
The measured height is the space that will be used when drawing this shape on the page.
Double MeasuredWidth
The measured width is the space that will be used when drawing this shape on the page.
Boolean Overline
Get or set if the text shape is rendered with an overline.
Pen Pen
Used to draw the curves on this text. (default = null)
ReadDirection ReadDirection
Read direction of this text (left-to-right or right-to-left).
Boolean StrikeOut
Get or set if the text shape is rendered striked out.
String Text
Display this text.
Boolean Underline
Get or set if the text shape is rendered with an underline.
Double WordSpacing
Get or set the word spacing. This is the extra spacing (in points) occupied by each space character. Default is 0 (no extra spacing).