All Frameworks Object Hierarchy This Framework Indexes
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 (Read Only) |
NbChar = MyTextRange.Length
o Property Start( | ) As (Read Only) |
StartCharPos = MyTextRange.Start
o Property TextProperties( | ) As (Read Only) |
Dim Prop As CATIADrawingTextProperties Set Prop = MyTextRange.TextProperties(String)
o Property Text( | ) As |
MyTextRange.Text = text Set MyTextProperties = MyTextRange.TextProperties MyTextProperties.Update
o Func GetTextRange( | iStart, | |
iEnd) As |
Dim extractedTextRange As DrawingTextRange start = 8 end = 15 extractedTextRange = MyTextRange.GetTextRange(start, end)
o Sub InsertAfter( | iString) |
String = "String to insert after" MyTextRange.InsertAfter(String) Set MyTextProperties = MyTextRange.TextProperties MyTextProperties.Update
o Sub InsertBefore( | iString) |
String = "String to insert before" MyTextRange.InsertBefore(String) Set MyTextProperties = MyTextRange.TextProperties MyTextProperties.Update
Copyright © 2003, Dassault Systèmes. All rights reserved.