All Frameworks Object Hierarchy This Framework Previous Next Indexes
IUnknown
|
+---IDispatch
|
+---CATBaseUnknown
|
+---CATBaseDispatch
|
+---DrawingTextRange
A range is a contiguous area in a drawing text defined by the position of a starting and ending character, or by the position of a starting character and a length expressed in number of characters.
| o Property Length( | ) As long (Read Only) |
NbChar = MyTextRange.Length
| o Property Start( | ) As long (Read Only) |
StartCharPos = MyTextRange.Start
| o Property Text( | ) As CATBSTR |
MyTextRange.Text = text Set MyTextProperties = MyTextRange.TextProperties MyTextProperties.Update
| o Property TextProperties( | ) As CATIADrawingTextProperties (Read Only) |
Dim Prop As CATIADrawingTextProperties Set Prop = MyTextRange.TextProperties(String)
| o Func GetTextRange( | long | iStart, |
| long | iEnd) As CATIADrawingTextRange |
Dim extractedTextRange As DrawingTextRange start = 8 end = 15 extractedTextRange = MyTextRange.GetTextRange(start, end)
| o Sub InsertAfter( | CATBSTR | iString) |
String = "String to insert after" MyTextRange.InsertAfter(String) Set MyTextProperties = MyTextRange.TextProperties MyTextProperties.Update
| o Sub InsertBefore( | CATBSTR | iString) |
String = "String to insert before" MyTextRange.InsertBefore(String) Set MyTextProperties = MyTextRange.TextProperties MyTextProperties.Update
Copyright © 2003, Dassault Systèmes. All rights reserved.