ToolStripComboBox.SelectionLength プロパティ

定義

ToolStripComboBox の編集できる部分で選択されている文字数を取得または設定します。

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

プロパティ値

Int32

ToolStripComboBox選択した文字数。

属性

注釈

このプロパティを使用すると、選択したテキストに対して操作を実行する前に、コンボ ボックス コントロールで文字が現在選択されているかどうかを確認できます。 プロパティの値がコントロールの SelectionLength テキスト内の文字数より大きい値に設定されている場合、プロパティの値は、コントロール内の SelectionLength テキストの長さ全体からプロパティの SelectionStart 値を引いた値に設定されます (プロパティに値が指定されている SelectionStart 場合)。

適用対象