|
Add_Text (Method)
This function adds a text into the drawing
Syntax:
Function Add_Text(sText As String, x As Single, y As Single, z As Single, vItemProperties As Object, sScale As Single, iFontNumber As Short, Angle As Single, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short, fBold As Boolean, fItalic As Boolean, fUnderline As Boolean, fStrikeOut As Boolean, lCharSet As Integer) As Integer
The Add_Text method syntax consists of the following:
Parameter
|
Data Type
|
Description
|
sText
|
String
|
Is the name of the text (change text line with CrLf)
|
x
|
Single
|
Is the x coordinate of the text's first character bottom left point
|
y
|
Single
|
Is the y coordinate of the text's first character bottom left point
|
z
|
Single
|
Is the z coordinate of the text's first character bottom left point
|
vItemProperties
|
Object
|
Is a string array with properties for the new object
|
sScale
|
Single
|
Is the font scale factor
|
iFontNumber
|
Short
|
Is the font index number
|
Angle
|
Single
|
Is the angle of the text
|
iClr
|
Short
|
Is the color index number
|
iWidth
|
Short
|
Is the pen width
|
iStyle
|
Short
|
Is the line type
|
iLayer
|
Short
|
Is the layer number
|
fBold
|
Boolean
|
A Boolean expression that if it is True then the text is bold
|
fItalic
|
Boolean
|
A Boolean expression that if it is True then the text is italic
|
fUnderline
|
Boolean
|
A Boolean expression that if it is True then the text is underlined
|
fStrikeOut
|
Boolean
|
A Boolean expression that if it is True then the text is strikethrough
|
lCharSet
|
Integer
|
Is the font character set number
|
Return value:
Integer - An Avax handle on success, zero on error.
Example
|