|
TextDocument.Selection object
Prototype for TextDocument.Selection objects. Is a kind of Document.Selection. SyntaxYou can create a selection of a whole text document content this way (in this case, the content of the left side): var selection = new TextDocument.Selection (my_doc.contents.left); You can create a partial selection of a text document content this way: var selection = new TextDocument.Selection (my_doc.contents.left, LinearRange (start, length)); Parameterscontent.
TextDocument.Content
object. Content to be selected.
Property OfTextDocument object. Implemented InECMerge 2.1 DescriptionTextDocument.Selection object defines a portion of text within a given content (and as such a given side/role for the comparison). Selections are used in several places to edit and retrieve text. Properties
Methodsnone specific. ExamplesExample 1.Obtaining the text of the current selection in current view:
var sel =
current_frame.coordinator.current_view.clone_selection();
See Also
|
|||||