편집

다음을 통해 공유


Selection.SetRange(Int32, Int32) Method

Definition

Sets the starting and ending character positions for the selection.

public:
 void SetRange(int Start, int End);
public void SetRange (int Start, int End);
abstract member SetRange : int * int -> unit
Public Sub SetRange (Start As Integer, End As Integer)

Parameters

Start
Int32

Required Integer. The starting character position of the selection.

End
Int32

Required Integer. The ending character position of the selection.

Remarks

Character position values start at the beginning of the story, with the first value being 0 (zero). All characters are counted, including nonprinting characters. Hidden characters are counted even if they're not displayed.

The SetRange method redefines the starting and ending positions of an existing Selection or Range object. This method differs from the Range method, which is used to create a range, given a starting and ending position.

Applies to