TextBox.Select(Int32, Int32) 方法

定义

选择文本框中的文本范围。Selects a range of text in the text box.

public:
 void Select(int start, int length);
public void Select (int start, int length);
member this.Select : int * int -> unit
Public Sub Select (start As Integer, length As Integer)

参数

start
Int32

所做选择中第一个字符的从零开始的字符索引。The zero-based character index of the first character in the selection.

length
Int32

选定内容的长度(以字符为单位)。The length of the selection, in characters.

异常

startlength 为负数。start or length is negative.

适用于

另请参阅