ITextRange.SetRange(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the endpoints of the text range to the specified values.
public:
void SetRange(int startPosition, int endPosition);
void SetRange(int const& startPosition, int const& endPosition);
public void SetRange(int startPosition, int endPosition);
function setRange(startPosition, endPosition)
Public Sub SetRange (startPosition As Integer, endPosition As Integer)
Parameters
- startPosition
-
Int32
int
The character position for the start of the text range. This parameter must be less than endPosition.
- endPosition
-
Int32
int
The character position for the end of the text range.
Remarks
If the text range is a nondegenerate selection, endPosition is the active end.