Adds a new text annotation to the end of the collection.
Visual Basic (Declaration) | |
---|---|
Public Function AddText( _ ByVal name As String, _ ByVal text As String, _ ByVal x As Double, _ ByVal y As Double, _ ByVal width As Double, _ ByVal height As Double _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- name
- Name of the annotation. Use an empty string to automatically assign a unique name.
Name of the annotation. Use an empty string to automatically assign a unique name. - text
- Annotation text.
Annotation text. - x
- X coordinate of the annotation.
X coordinate of the annotation. - y
- Y coordinate of the annotation.
Y coordinate of the annotation. - width
- Width of the annotation.
Width of the annotation. - height
- Height of the annotation.
Height of the annotation.
Return Value
Index of the added object.
Index of the added object.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family