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

屬性值

Int32

包含在 ToolStripTextBox 文字中的字元數目。

屬性

備註

您可以使用 TextLength 屬性來判斷字串中的工作字元數目,例如在控制項的文字中搜尋特定文字字串,其中需要有字元總數的知識。

適用於