![]()  | 
  | 
TextDocument.Content object
 
 Prototype for TextDocument.Content objects SyntaxYou cannot create these objects, you can only get access to them inside an TextDocument. 
					var doc = current_frame.coordinator.document;
      // with an activate text view
       Parametersnone. Property Ofnone. Implemented InECMerge 2.1 DescriptionTextDocument.Content let you access the content of a particular pane. When viewed, it allows also to modify that content. Properties
 
 Methods
					get_text
					 ExamplesExample 1.Obtaining the length of a content. 
					var doc = current_frame.coordinator.document;
      // with an active text frame
       See Also
					 Method set_textSyntaxfunction set_text (selection, text)
     Parametersselection. 
    TextDocument.Selection
    object. Selection to be replaced, maybe empty, in this case,
    the selection.range.start is used as the insertion position.
     Method OfTextDocument.Content object. Implemented InECMerge 2.1 DescriptionReplaces the selection with given text.
     Examplessee TextDocument.transaction examples. See Also
 
					 Method get_textSyntaxfunction get_text (selection)
     Parametersselection. TextDocument.Selection object. Selection from which the text is requested Method OfTextDocument.Content object. Implemented InECMerge 2.1 DescriptionReturns the text covered by the selection. ExamplesExample 1.Retrieves the 100 th first characters of the right side and logs them: 
					var doc =
      current_frame.coordinator.document; // with an
      active text frame
       See Also
 
					 Method line_from_positionSyntaxfunction line_from_position (position)
     Parametersposition. Integer. Position (in bytes) in the text document. Text document are represented as UTF8 characters. Method OfTextDocument.Content object. Implemented InECMerge 2.1 DescriptionReturns the line containing the given position. Positions as well as lines are zero-based. ExamplesExample 1.Displays a message box with the line of the current position. 
					 
					 See Also
 
					 
 Method position_from_lineSyntaxfunction position_from_line (line)
     Parametersline. Integer. Line number from which the position is requested Method OfTextDocument.Content object. Implemented InECMerge 2.1 DescriptionReturns position of the first character of the specified line. Positions as well as lines are zero-based. ExamplesExample 1.Displays a message box with the position of the current line. 
					 
					 See Also
 
					  | 
|||||