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



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

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

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

   

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



DataGridViewTextBoxCell.MaxInputLength プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS