Apitron.PDF.Kit library for .NET
SystemObject
Apitron.PDF.Kit.FixedLayout.ResourcesResourceContext
Shape
Apitron.PDF.Kit.FixedLayout.ContentTextObject
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Top
Top
Top
This class represents a text object.
Inheritance Hierarchy
Apitron.PDF.Kit.FixedLayout.ResourcesResourceContext
Shape
Apitron.PDF.Kit.FixedLayout.ContentTextObject
Namespace: Apitron.PDF.Kit.FixedLayout.Content
Assembly: Apitron.PDF.Kit (in Apitron.PDF.Kit.dll) Version: 2.0.37.0 (2.0.37.0)
Syntax
The TextObject type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TextObject |
Initializes a new instance of the TextObject class.
Font will be used from the graphics state.
| |
TextObject(String, Double) |
Initializes a new instance of the TextObject class.
| |
TextObject(StandardFonts, Double) |
Initializes a new instance of the TextObject class.
|
Properties
Name | Description | |
---|---|---|
Text |
Gets the text of the object.
|
Methods
Name | Description | |
---|---|---|
AppendText |
Appends the text.
| |
AppendTextLine(String) |
Appends the text on the next line. Next line will be calculated using current text leading (SetTextLeading(Double)).
| |
AppendTextLine(Double, Double, String) |
Appends the text on the next line and sets word and char spacings. Next line will be calculated using current text leading (SetTextLeading(Double)).
| |
AppendTextWithPositions(Object) |
Appends the text with positions.
Show one or more text strings, allowing individual glyph positioning. Each element of array shall be either a string or a number.
If the element is a string, this operator shall show the string. If it is a number, the operator shall adjust the text position by that amount; that is, it shall translate the text matrix.
The number shall be expressed in thousandths of a unit of text space. This amount shall be subtracted from the current horizontal or vertical coordinate, depending on the writing mode.
In the default coordinate system, a positive adjustment has the effect of moving the next glyph painted either to the left or down by the given amount.
| |
AppendTextWithPositions(String, Double) |
Appends the text with positions.
Show one or more text strings, allowing individual glyph positioning. Each element of array shall be either a string or a number.
If the element is a string, this operator shall show the string. If it is a number, the operator shall adjust the text position by that amount; that is, it shall translate the text matrix.
The number shall be expressed in thousandths of a unit of text space. This amount shall be subtracted from the current horizontal or vertical coordinate, depending on the writing mode.
In the default coordinate system, a positive adjustment has the effect of moving the next glyph painted either to the left or down by the given amount.
| |
IsRTL |
Determines whether the specified text direction is RTL.
| |
MoveToNextLine |
Move to the start of the next line, offset from the start of the current line by current leading.
| |
MoveToNextLine(Double, Double) |
Move to the start of the next line, offset from the start of the current line by (tx, ty). tx and ty shall denote numbers expressed in unscaled text space units.
| |
MoveToNextLineAndSetLeading |
Moves to next line and as a side effect sets the leading .
| |
SetCharacterSpacing |
Sets the character spacing.
| |
SetDeviceNonStrokingColor |
Sets the device color as a current non stroking color.
The number of array elements determines the colour space in which the colour shall be defined:
1 DeviceGray
3 DeviceRGB
4 DeviceCMYK
| |
SetDeviceStrokingColor |
Sets the device color as a current stroking color.
The number of array elements determines the colour space in which the colour shall be defined:
1 DeviceGray
3 DeviceRGB
4 DeviceCMYK
| |
SetFont(String, Double) |
Sets the current font.
| |
SetFont(StandardFonts, Double) |
Sets one of the standarcd fonts as a current font.
| |
SetHorizontalScaling |
Sets the horizontal scaling.
| |
SetNonStrokingColor(Double) |
Sets the current color for the non stroking operations.
| |
SetNonStrokingColor(String, Double) |
Sets the current color for the non stroking operations.
| |
SetNonStrokingColorSpace |
Sets the non strking color space.
| |
SetRotation |
Sets the current text matrix using alpha. Equivalent of call SetTextMatrix(Math.Cos(alpha), Math.Sin(alpha), -Math.Sin(alpha), Math.Cos(alpha), 0, 0)
| |
SetScale |
Sets scale to the current text matrix.Equivalent of call SetTextMatrix(xScale, 0, 0, yScale, 0, 0)
| |
SetSkew |
Sets the current text matrix using xAngle and yAngle. Equivalent of call SetTextMatrix(1, Math.Tan(xAlpha), Math.Tan(yAlpha), 1, 0, 0)
| |
SetStrokingColor(Double) |
Sets the current color for the stroking operations.
| |
SetStrokingColor(String, Double) |
Sets the current color for the stroking operations.
| |
SetStrokingColorSpace |
Sets the stroking color space.
| |
SetTextLeading |
Sets the text leading. It specifies the vertical distance between the baselines of adjacent lines of text.
| |
SetTextMatrix |
Sets the current text matrix.
| |
SetTextRenderingMode |
Sets the text rendering mode. Determines whether showing text causes glyph outlines to be stroked, filled or both.
| |
SetTextRise |
Sets the text rise. It specifies the distance to move the baseline up or down
from its default location. Positive values of text rise move the baseline up.
| |
SetTranslation |
Sets the current text matrix. Equivalent of call SetTextMatrix(1, 0, 0, 1, xOffset, yOffset)
| |
SetWordSpacing |
Sets the word spacing.
| |
ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) |
See Also