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。

适用于