TextBox.SelectionLength 属性

定义

获取或设置在文本框可编辑部分中选定的字符数。Gets or sets the number of characters selected in the editable portion of the text box.

public:
 virtual property int SelectionLength { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public override int SelectionLength { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SelectionLength : int with get, set
Public Overrides Property SelectionLength As Integer

属性值

Int32

文本框中选定的字符数。The number of characters selected in the text box.

属性

适用于