ToolStripTextBox.SelectionLength プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As ToolStripTextBox Dim value As Integer value = instance.SelectionLength instance.SelectionLength = value
/** @property */ public int get_SelectionLength () /** @property */ public void set_SelectionLength (int value)
ToolStripTextBox で選択されている文字数。

このプロパティを使用すると、選択されたテキストに対して操作を実行する前に、テキスト ボックス コントロールで文字が選択されているかどうかを判断できます。SelectionLength プロパティの値がコントロールのテキスト内の文字数を超える値に設定されている場合、SelectionLength プロパティの値は、コントロール内のテキストの全体の長さから SelectionStart プロパティの値を引いた値に設定されます (SelectionStart プロパティに値が指定されている場合)。
![]() |
---|
SelectionStart をカレットのテキスト ボックス内での移動先の位置に設定し、SelectionLength プロパティの値を 0 に設定すると、プログラムによってテキスト ボックス内でカレットを移動できます。カレットを移動するには、テキスト ボックスにフォーカスがあることが必要です。 |

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からToolStripTextBox.SelectionLength プロパティを検索する場合は、下記のリンクをクリックしてください。

- ToolStripTextBox.SelectionLength プロパティのページへのリンク