TextBox.Select(Int32, Int32) 方法

定義

在文字方塊中選取文字範圍。

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

在選取範圍中,第一個字元的以零起始的字元索引。

length
Int32

選取範圍的長度,以字元為單位。

例外狀況

startlength 為負。

適用於

另請參閱