通过


ToolStripTextBox.TextLength 属性

定义

获取控件中的文本长度。

public:
 property int TextLength { int get(); };
[System.ComponentModel.Browsable(false)]
public int TextLength { get; }
[<System.ComponentModel.Browsable(false)>]
member this.TextLength : int
Public ReadOnly Property TextLength As Integer

属性值

文本中包含的 ToolStripTextBox字符数。

属性

注解

可以使用该 TextLength 属性来确定字符串中任务的字符数,例如在控件文本中搜索特定文本字符串,其中需要了解字符总数。

适用于