DataGridViewTextBoxColumn クラス

定義

DataGridViewTextBoxCell セルのコレクションをホストします。

public ref class DataGridViewTextBoxColumn : System::Windows::Forms::DataGridViewColumn
[System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.DataGridViewTextBoxColumn), "DataGridViewTextBoxColumn.bmp")]
public class DataGridViewTextBoxColumn : System.Windows.Forms.DataGridViewColumn
[System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.DataGridViewTextBoxColumn), "DataGridViewTextBoxColumn")]
public class DataGridViewTextBoxColumn : System.Windows.Forms.DataGridViewColumn
[<System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.DataGridViewTextBoxColumn), "DataGridViewTextBoxColumn.bmp")>]
type DataGridViewTextBoxColumn = class
    inherit DataGridViewColumn
[<System.Drawing.ToolboxBitmap(typeof(System.Windows.Forms.DataGridViewTextBoxColumn), "DataGridViewTextBoxColumn")>]
type DataGridViewTextBoxColumn = class
    inherit DataGridViewColumn
Public Class DataGridViewTextBoxColumn
Inherits DataGridViewColumn
継承
属性

次のコード例は、この型の使用方法を示しています。

DataGridViewTextBoxColumn titleColumn =
    new DataGridViewTextBoxColumn();
titleColumn.HeaderText = "Title";
titleColumn.AutoSizeMode =
    DataGridViewAutoSizeColumnMode.AllCellsExceptHeader;
Dim titleColumn As New DataGridViewTextBoxColumn()
titleColumn.HeaderText = "Title"
titleColumn.AutoSizeMode = _
    DataGridViewAutoSizeColumnMode.AllCellsExceptHeader

注釈

DataGridViewTextBoxColumnクラスは、テキスト文字列のDataGridViewColumn表示と編集を可能にするセルを論理的にホストするために使用される特殊な型のクラスです。 DataGridViewTextBoxColumnには、そのオブジェクトと交差するすべての DataGridViewRow オブジェクトが関連付けられていますDataGridViewTextBoxCellDataGridViewTextBoxCellがアクティブになると、ユーザー入力をDataGridViewTextBoxEditingControl処理するコントロールが提供されます。

この列の種類の並べ替えモードの既定値は です Automatic

注意 (継承者)

から DataGridViewTextBoxColumn 派生し、派生クラスに新しいプロパティを追加するときは、必ず メソッドを Clone() オーバーライドして、複製操作中に新しいプロパティをコピーしてください。 基底クラスの Clone() プロパティが新しいセルにコピーされるように、基底クラスの メソッドも呼び出す必要があります。

コンストラクター

DataGridViewTextBoxColumn()

DataGridViewTextBoxColumn クラスの新しいインスタンスを既定の状態に初期化します。

プロパティ

AutoSizeMode

列の幅を自動的に調整するときに使用するモードを取得または設定します。

(継承元 DataGridViewColumn)
CellTemplate

セルの外観のモデルとなるテンプレートを取得または設定します。

CellType

セル テンプレートのランタイム型を取得します。

(継承元 DataGridViewColumn)
ContextMenuStrip

列のショートカット メニューを取得または設定します。

(継承元 DataGridViewColumn)
DataGridView

この要素に関連付けられている DataGridView コントロールを取得します。

(継承元 DataGridViewElement)
DataPropertyName

DataGridViewColumn がバインドされている、データ ソース プロパティの名前またはデータベースの列の名前を取得または設定します。

(継承元 DataGridViewColumn)
DefaultCellStyle

列の既定のセル スタイルを取得または設定します。

(継承元 DataGridViewColumn)
DefaultHeaderCellType

既定のヘッダー セルのランタイム型を取得または設定します。

(継承元 DataGridViewBand)
Displayed

バンドが現在画面に表示されているかどうかを示す値を取得します。

(継承元 DataGridViewBand)
DisplayIndex

現在表示されている列を基準とした列の表示順序を設定または取得します。

(継承元 DataGridViewColumn)
DividerWidth

列の区分線の幅 (ピクセル数) を取得または設定します。

(継承元 DataGridViewColumn)
FillWeight

列が、コントロール内の他の塗りつぶしモードの列の幅を基準とする塗りつぶしモードの場合、列の幅を表す値を取得または設定します。

(継承元 DataGridViewColumn)
Frozen

ユーザーが DataGridView コントロールを水平方向にスクロールしたときに列が移動するかどうかを示す値を取得または設定します。

(継承元 DataGridViewColumn)
HasDefaultCellStyle

DefaultCellStyle プロパティが設定されているかどうかを示す値を取得します。

(継承元 DataGridViewBand)
HeaderCell

列ヘッダーを表す DataGridViewColumnHeaderCell を取得または設定します。

(継承元 DataGridViewColumn)
HeaderCellCore

DataGridViewBand のヘッダー セルを取得または設定します。

(継承元 DataGridViewBand)
HeaderText

列のヘッダー セルのキャプション テキストを取得または設定します。

(継承元 DataGridViewColumn)
Index

DataGridView コントロール内のバンドの相対位置を取得します。

(継承元 DataGridViewBand)
InheritedAutoSizeMode

列に対して有効なサイズ変更モードを取得します。

(継承元 DataGridViewColumn)
InheritedStyle

列に現在適用されているセル スタイルを取得します。

(継承元 DataGridViewColumn)
IsDataBound

列がデータ ソースにバインドされているかどうかを示す値を取得します。

(継承元 DataGridViewColumn)
IsRow

バンドが行を表すかどうかを示す値を取得します。

(継承元 DataGridViewBand)
MaxInputLength

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

MinimumWidth

列の最小幅をピクセル単位で取得または設定します。

(継承元 DataGridViewColumn)
Name

列の名前を取得または設定します。

(継承元 DataGridViewColumn)
ReadOnly

ユーザーが列のセルを編集できるかどうかを示す値を取得または設定します。

(継承元 DataGridViewColumn)
Resizable

列のサイズを変更できるかどうかを示す値を取得または設定します。

(継承元 DataGridViewColumn)
Selected

バンドが、選択されたユーザー インターフェイス (UI) 状態かどうかを示す値を取得または設定します。

(継承元 DataGridViewBand)
Site

列のサイトを取得または設定します。

(継承元 DataGridViewColumn)
SortMode

列の並べ替えモードを取得または設定します。

State

要素のユーザー インターフェイス (UI) の状態を取得します。

(継承元 DataGridViewElement)
Tag

バンドに関連付けられているデータを含むオブジェクトを取得または設定します。

(継承元 DataGridViewBand)
ToolTipText

ツールヒントに使用されるテキストを取得または設定します。

(継承元 DataGridViewColumn)
ValueType

列のセルの値のデータ型を取得または設定します。

(継承元 DataGridViewColumn)
Visible

列が表示されているかどうかを示す値を取得または設定します。

(継承元 DataGridViewColumn)
Width

列の現在の幅を取得または設定します。

(継承元 DataGridViewColumn)

メソッド

Clone()

このバンドの同一コピーを作成します。

(継承元 DataGridViewColumn)
Dispose()

DataGridViewBand によって使用されているすべてのリソースを解放します。

(継承元 DataGridViewBand)
Dispose(Boolean)

DataGridViewBand によって使用されているアンマネージド リソースを解放し、オプションでマネージド リソースも解放します。

(継承元 DataGridViewColumn)
Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetPreferredWidth(DataGridViewAutoSizeColumnMode, Boolean)

指定した基準に基づいて、列の適切な幅を計算します。

(継承元 DataGridViewColumn)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
OnDataGridViewChanged()

バンドが別の DataGridView に関連付けられている場合に呼び出されます。

(継承元 DataGridViewBand)
RaiseCellClick(DataGridViewCellEventArgs)

CellClick イベントを発生させます。

(継承元 DataGridViewElement)
RaiseCellContentClick(DataGridViewCellEventArgs)

CellContentClick イベントを発生させます。

(継承元 DataGridViewElement)
RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

CellContentDoubleClick イベントを発生させます。

(継承元 DataGridViewElement)
RaiseCellValueChanged(DataGridViewCellEventArgs)

CellValueChanged イベントを発生させます。

(継承元 DataGridViewElement)
RaiseDataError(DataGridViewDataErrorEventArgs)

DataError イベントを発生させます。

(継承元 DataGridViewElement)
RaiseMouseWheel(MouseEventArgs)

MouseWheel イベントを発生させます。

(継承元 DataGridViewElement)
ToString()

列を説明する文字列を取得します。

イベント

Disposed

DataGridViewColumn が破棄されたときに発生します。

(継承元 DataGridViewColumn)

適用対象

こちらもご覧ください