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

Dim instance As DataGridViewTextBoxColumn Dim value As Integer value = instance.MaxInputLength instance.MaxInputLength = value
/** @property */ public int get_MaxInputLength () /** @property */ public void set_MaxInputLength (int value)
テキスト ボックスに入力できる最大文字数。既定値は 32767 です。


MaxInputLength プロパティの設定は、プログラム上でセル値またはセルの書式指定を通じて入力するテキストの長さには影響しません。これが適用されるのは、ユーザーによる入力と編集のみです。
このプロパティを取得または設定すると、CellTemplate プロパティによって返されるオブジェクトの MaxInputLength プロパティを取得または設定できます。このプロパティを設定すると、列に含まれるすべてのセルの MaxInputLength プロパティも設定されます。各セルの指定した値をオーバーライドするには、列の値を設定してからセルの値を設定します。

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DataGridViewTextBoxColumn.MaxInputLength プロパティのページへのリンク