Dela via


ITextRange.SetRange(Int32, Int32) Method

Definition

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.

Applies to