Add_ShapeText
MethodAdd_ShapeText (Method)
Adds a text. The difference from add_Text is that this text has z order
Syntax:
Function Add_ShapeText(sText As String, x As Single, y As Single, Height As Single, vItemProperties As Object, sAngle As Single, iFontNumber As Short, 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, zOrder As Integer, fBorder As Boolean) As Integer
The Add_ShapeText method syntax consists of the following:
Parameter |
Data Type |
Description |
sText |
String |
The text object (change text line with CrLf) |
x |
Single |
The x coordinate of the text's first character bottom left point |
y |
Single |
The y coordinate of the text's first character bottom left point |
Height |
Single |
The text's height |
vItemProperties |
Object |
A string array of properties for the new object |
sAngle |
Single |
The text's angle |
iFontNumber |
Short |
The font index number |
iClr |
Short |
The color index number |
iWidth |
Short |
The pen width |
iStyle |
Short |
The line type |
iLayer |
Short |
The layer number |
fBold |
Boolean |
True when the text is bold |
fItalic |
Boolean |
True when the text is italic |
fUnderline |
Boolean |
True when the text is underlined |
fStrikeOut |
Boolean |
True when the text is strikethrough |
lCharSet |
Integer |
The font character set number |
zOrder |
Integer |
The object's elevation in the whole drawing |
fBorder |
Boolean |
True when a. border contours the text |
Return value:
Integer - An Avax handle on success, zero on error.
Remarks:
Use the returned string as line type data for Avax line style definitions.