Skip to main content

Selection Constructors

Contains information about document selection.
Name Parameters Description
Selection(SubDocument, Interval[]) subDocument, intervals Initializes a new instance of the Selection class and selects the specified intervals.
Selection(SubDocument, Int32, Int32) subDocument, startPosition, length Initializes a new instance of the Selection class and selects the specified interval.
Selection(SubDocument, Int32) subDocument, caretPosition Initializes a new instance of the Selection class and sets the caret position.
See Also