DataGridViewTextBoxCell.MaxInputLength プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewTextBoxCell.MaxInputLength プロパティの意味・解説 

DataGridViewTextBoxCell.MaxInputLength プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

テキスト ボックスに入力できる最大文字数を取得または設定します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Overridable Property
 MaxInputLength As Integer
Dim instance As DataGridViewTextBoxCell
Dim value As Integer

value = instance.MaxInputLength

instance.MaxInputLength = value
public virtual int MaxInputLength { get;
 set; }
public:
virtual property int MaxInputLength {
    int get ();
    void set (int value);
}
/** @property */
public int get_MaxInputLength ()

/** @property */
public void set_MaxInputLength (int
 value)
public function get MaxInputLength
 () : int

public function set MaxInputLength
 (value : int)

プロパティ値
テキスト ボックスに入力できる最大文字数。既定値は 32767 です。

例外例外
例外の種類条件

ArgumentOutOfRangeException

値が 0 未満です。

解説解説

MaxInputLength プロパティの設定は、プログラム上でセル値またはセルの書式指定を通じて入力するテキストの長さには影響しません。これが影響するのは、ユーザーによる入力と編集のみです。

セルを所有している列の MaxInputLength プロパティを設定すると、その列に含まれるすべてのセルの MaxInputLength プロパティも設定されます。各セルの指定した値をオーバーライドするには、列の値を設定してからセルの値を設定します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewTextBoxCell クラス
DataGridViewTextBoxCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewTextBoxColumn.MaxInputLength



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「DataGridViewTextBoxCell.MaxInputLength プロパティ」の関連用語

DataGridViewTextBoxCell.MaxInputLength プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridViewTextBoxCell.MaxInputLength プロパティのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS