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

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


MaxInputLength プロパティの設定は、プログラム上でセル値またはセルの書式指定を通じて入力するテキストの長さには影響しません。これが影響するのは、ユーザーによる入力と編集のみです。
セルを所有している列の 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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