TextBox.SelectionLength 屬性

定義

取得或設定文字框中目前選取範圍中的字元數。

public:
 property int SelectionLength { int get(); void set(int value); };
int SelectionLength();

void SelectionLength(int value);
public int SelectionLength { get; set; }
var int32 = textBox.selectionLength;
textBox.selectionLength = int32;
Public Property SelectionLength As Integer
<TextBox SelectionLength="int"/>

屬性值

Int32

int

文字框中目前選取範圍中的字元數,如果沒有選取範圍,則為 0。

適用於