API Reference
Class
WordTextSegment
Represents a continuous text fragment within a document and exposes its start and end positions.
Inheritance
- Object
- WordTextSegment
Constructors
WordTextSegment 3 overloads
WordTextSegment() #Initializes a new instance of the WordTextSegment class with both positions set to the start of the document.
WordTextSegment(System.Int32 beginRun, System.Int32 endRun, System.Int32 beginText, System.Int32 endText, System.Int32 beginChar, System.Int32 endChar) #Initializes a new instance of the WordTextSegment class with explicit position values.
Parameters
- beginRun System.Int32
- Paragraph index for the start of the segment.
- endRun System.Int32
- Paragraph index where the segment ends.
- beginText System.Int32
- Text index within the starting paragraph.
- endText System.Int32
- Text index within the ending paragraph.
- beginChar System.Int32
- Character index within the starting text.
- endChar System.Int32
- Character index within the ending text.
WordTextSegment(OfficeIMO.Word.WordPositionInParagraph beginPos, OfficeIMO.Word.WordPositionInParagraph endPos) #Initializes a new instance of the WordTextSegment class using the supplied begin and end positions.
Parameters
- beginPos OfficeIMO.Word.WordPositionInParagraph
- Starting position of the segment.
- endPos OfficeIMO.Word.WordPositionInParagraph
- Ending position of the segment.