TextBox.SelectionStart プロパティ

定義

現在の選択範囲の先頭の文字インデックスを取得または設定します。

public:
 property int SelectionStart { int get(); void set(int value); };
public int SelectionStart { get; set; }
member this.SelectionStart : int with get, set
Public Property SelectionStart As Integer

プロパティ値

現在の選択範囲の先頭の文字インデックス。

例外

SelectionStart に負の数が設定されています。

注釈

指定した選択範囲の長さが復帰文字と改行文字の間で選択範囲を終了する場合、選択の長さは自動的に 1 ずつ増やされ、結果の選択範囲は行末マーカー全体にまたがります。

適用対象

こちらもご覧ください