Adds a character or a text run to a PDE Text object.
Syntax
'Declaration
Public Overloads Sub Add( _
ByVal As ImGearPDETextFlags, _
ByVal As Integer, _
ByVal As String, _
ByVal As ImGearPDEFont, _
ByVal As ImGearPDEGraphicState, _
ByVal As ImGearPDETextState, _
ByVal As ImGearPDFFixedMatrix, _
ByVal As ImGearPDFFixedMatrix _
)
'Usage
Dim instance As ImGearPDEText
Dim options As ImGearPDETextFlags
Dim index As Integer
Dim text As String
Dim font As ImGearPDEFont
Dim graphicsState As ImGearPDEGraphicState
Dim textState As ImGearPDETextState
Dim textMatrix As ImGearPDFFixedMatrix
Dim strokeMatrix As ImGearPDFFixedMatrix
instance.Add(options, index, text, font, graphicsState, textState, textMatrix, strokeMatrix)
Parameters
- options
- ImGearPDETextFlags options that specify what kind of text to add. Must be either:
CHAR
- for a text character, or RUN
- for a text run. - index
- Index after which to add character or text run.
- text
- String with characters to add. Passing Null for text can invalidate the text
object but will not raise an error. Callers must not pass Null for this parameter.
- font
- Font for the element.
- graphicsState
- The graphics state for the element.
- textState
- The text state for the element.
- textMatrix
- The coordinates of text are specified in text space. TextMatrix defines the
transformation from text space to the user space. See section '5.3.1Text-Positioning Operators' of
the PDF Reference for more details.
- strokeMatrix
- The transformation matrix for the line width when stroking text. May be
Null. The line width parameter specifies the thickness of the line used to stroke a path. It is a
non-negative number expressed in user space units; stroking a path entails painting all points whose
perpendicular distance from the path in user space is less than or equal to half the line width. The
effect produced in device space depends on the StrokeMatrix in effect at the time the path is
stroked. See section '4.3.2 Details of Graphics State Parameters' of the PDF Reference for more details.
See Also