Block.AddText(ByVal TextString As String, ByVal X As Long, ByVal Y As Long) As IVdText
String to be added.
X coordinate.
Y coordinate.
As IVdText. The newly created Text Object.
The string will be located at the coordinates passed. To adjust the orientation or other properties of the Text string, use the returned Text object and its properties and methods to make the adjustments.
Add a red annotation string.
Set Txt=ActiveView.Block.AddText("FOOBAR", 100, 100)
Txt.Color = VGCOLORRED
Txt.Size = 20