AddText Method (Block Object)

Scope: Schematic editor

Object: Block Object

Prerequisites: None

Adds annotation text string.

Usage

Block.AddText(ByVal TextString As String, ByVal X As Long, ByVal Y As Long) As IVdText

Arguments

TextString

String to be added.

X

X coordinate.

Y

Y coordinate.

Return Values

As IVdText. The newly created Text Object.

Description

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.

Examples

Add a red annotation string.

Set Txt=ActiveView.Block.AddText("FOOBAR", 100, 100) 
Txt.Color = VGCOLORRED 
Txt.Size = 20