DataGridViewColumnHeaderCell クラス

定義

DataGridView コントロール内の列ヘッダーを表します。

public ref class DataGridViewColumnHeaderCell : System::Windows::Forms::DataGridViewHeaderCell
public class DataGridViewColumnHeaderCell : System.Windows.Forms.DataGridViewHeaderCell
type DataGridViewColumnHeaderCell = class
    inherit DataGridViewHeaderCell
Public Class DataGridViewColumnHeaderCell
Inherits DataGridViewHeaderCell
継承
派生

注意 (継承者)

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

コンストラクター

名前 説明
DataGridViewColumnHeaderCell()

DataGridViewColumnHeaderCell クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
AccessibilityObject

DataGridViewCell.DataGridViewCellAccessibleObjectに割り当てられたDataGridViewCellを取得します。

(継承元 DataGridViewCell)
ButtonState

ヘッダー セルのボタンのような表示状態を取得します。

(継承元 DataGridViewHeaderCell)
ColumnIndex

このセルの列インデックスを取得します。

(継承元 DataGridViewCell)
ContentBounds

セルのコンテンツ領域を囲む外接する四角形を取得します。

(継承元 DataGridViewCell)
ContextMenuStrip

セルに関連付けられているショートカット メニューを取得または設定します。

(継承元 DataGridViewCell)
DataGridView

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

(継承元 DataGridViewElement)
DefaultNewRowValue

新しいレコードの行のセルの既定値を取得します。

(継承元 DataGridViewCell)
Displayed

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

(継承元 DataGridViewHeaderCell)
EditedFormattedValue

セルが編集モードであり、値がコミットされていないかどうかに関係なく、セルの現在の書式設定された値を取得します。

(継承元 DataGridViewCell)
EditType

セルのホステッド編集コントロールの型を取得します。

(継承元 DataGridViewCell)
ErrorIconBounds

セルのエラー アイコンの境界を取得します。

(継承元 DataGridViewCell)
ErrorText

セルに関連付けられているエラー条件を説明するテキストを取得または設定します。

(継承元 DataGridViewCell)
FormattedValue

表示用に書式設定されたセルの値を取得します。

(継承元 DataGridViewCell)
FormattedValueType

セルの書式設定された値の型を取得します。

(継承元 DataGridViewHeaderCell)
Frozen

セルが固定されているかどうかを示す値を取得します。

(継承元 DataGridViewHeaderCell)
HasStyle

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

(継承元 DataGridViewCell)
InheritedState

行と列の状態から継承されたセルの現在の状態を取得します。

(継承元 DataGridViewCell)
InheritedStyle

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

(継承元 DataGridViewCell)
IsInEditMode

このセルが現在編集されているかどうかを示す値を取得します。

(継承元 DataGridViewCell)
OwningColumn

このセルを含む列を取得します。

(継承元 DataGridViewCell)
OwningRow

このセルを含む行を取得します。

(継承元 DataGridViewCell)
PreferredSize

セルが収まる四角形領域のサイズ (ピクセル単位) を取得します。

(継承元 DataGridViewCell)
ReadOnly

ヘッダー セルが読み取り専用かどうかを示す値を取得します。

(継承元 DataGridViewHeaderCell)
Resizable

セルのサイズを変更できるかどうかを示す値を取得します。

(継承元 DataGridViewHeaderCell)
RowIndex

セルの親行のインデックスを取得します。

(継承元 DataGridViewCell)
Selected

セルが選択されているかどうかを示す値を取得または設定します。

(継承元 DataGridViewHeaderCell)
Size

セルのサイズを取得します。

(継承元 DataGridViewCell)
SortGlyphDirection

表示される並べ替えグリフを示す値を取得または設定します。

State

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

(継承元 DataGridViewElement)
Style

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

(継承元 DataGridViewCell)
Tag

セルに関する補足データを含むオブジェクトを取得または設定します。

(継承元 DataGridViewCell)
ToolTipText

このセルに関連付けられているツールヒント テキストを取得または設定します。

(継承元 DataGridViewCell)
Value

このセルに関連付けられている値を取得または設定します。

(継承元 DataGridViewCell)
ValueType

セルに格納されている値の型を取得します。

(継承元 DataGridViewHeaderCell)
Visible

セルが表示されているかどうかを示す値を取得します。

(継承元 DataGridViewHeaderCell)

メソッド

名前 説明
AdjustCellBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, Boolean, Boolean, Boolean, Boolean)

指定した条件に従って、入力セルの罫線のスタイルを変更します。

(継承元 DataGridViewCell)
BorderWidths(DataGridViewAdvancedBorderStyle)

すべてのセル余白の幅を表す Rectangle を返します。

(継承元 DataGridViewCell)
ClickUnsharesRow(DataGridViewCellEventArgs)

セルがクリックされたときにセルの行の共有を解除するかどうかを示します。

(継承元 DataGridViewCell)
Clone()

このセルの正確なコピーを作成します。

ContentClickUnsharesRow(DataGridViewCellEventArgs)

セルのコンテンツがクリックされたときにセルの行の共有を解除するかどうかを示します。

(継承元 DataGridViewCell)
ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs)

セルの内容がダブルクリックされたときに、セルの行の共有を解除するかどうかを示します。

(継承元 DataGridViewCell)
CreateAccessibilityInstance()

DataGridViewColumnHeaderCellの新しいアクセス可能なオブジェクトを作成します。

DetachEditingControl()

セルの編集コントロールを DataGridViewから削除します。

(継承元 DataGridViewCell)
Dispose()

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

(継承元 DataGridViewCell)
Dispose(Boolean)

DataGridViewHeaderCellによって使用されるアンマネージ リソースを解放し、必要に応じてマネージド リソースを解放します。

(継承元 DataGridViewHeaderCell)
DoubleClickUnsharesRow(DataGridViewCellEventArgs)

セルがダブルクリックされたときに、セルの行が共有解除されるかどうかを示します。

(継承元 DataGridViewCell)
EnterUnsharesRow(Int32, Boolean)

フォーカスがセルに移動したときに親行の共有を解除するかどうかを示します。

(継承元 DataGridViewCell)
Equals(Object)

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

(継承元 Object)
GetClipboardContent(Int32, Boolean, Boolean, Boolean, Boolean, String)

Clipboardにコピーするセルの書式設定された値を取得します。

GetContentBounds(Graphics, DataGridViewCellStyle, Int32)

指定した Graphics オブジェクトとセル スタイルを使用して計算される、セルのコンテンツ領域を囲む外接する四角形を返します。

GetContentBounds(Int32)

セルの現在有効な既定の Graphics とセル スタイルを使用して、セルのコンテンツ領域を囲む外接する四角形を返します。

(継承元 DataGridViewCell)
GetEditedFormattedValue(Int32, DataGridViewDataErrorContexts)

セルが編集モードであり、値がコミットされていないかどうかに関係なく、セルの現在の書式設定された値を返します。

(継承元 DataGridViewCell)
GetErrorIconBounds(Graphics, DataGridViewCellStyle, Int32)

セルのエラー アイコンを囲む外接する四角形 (表示されている場合) を返します。

(継承元 DataGridViewCell)
GetErrorText(Int32)

セルのエラーを表す文字列を返します。

(継承元 DataGridViewCell)
GetFormattedValue(Object, Int32, DataGridViewCellStyle, TypeConverter, TypeConverter, DataGridViewDataErrorContexts)

表示用に書式設定されたセルの値を取得します。

(継承元 DataGridViewCell)
GetHashCode()

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

(継承元 Object)
GetInheritedContextMenuStrip(Int32)

指定した行の継承されたショートカット メニューを取得します。

GetInheritedState(Int32)

行または列の状態から継承されたセルの現在の状態を示す値を返します。

(継承元 DataGridViewHeaderCell)
GetInheritedStyle(DataGridViewCellStyle, Int32, Boolean)

セルに適用されるスタイルを取得します。

GetPreferredSize(Graphics, DataGridViewCellStyle, Int32, Size)

セルの優先サイズをピクセル単位で計算します。

GetSize(Int32)

セルのサイズを取得します。

(継承元 DataGridViewHeaderCell)
GetType()

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

(継承元 Object)
GetValue(Int32)

セルの値を取得します。

InitializeEditingControl(Int32, Object, DataGridViewCellStyle)

セルの編集に使用するコントロールを初期化します。

(継承元 DataGridViewCell)
KeyDownUnsharesRow(KeyEventArgs, Int32)

フォーカスがセルにある間にユーザーがキーを押した場合に、親行が共有されていないかどうかを示します。

(継承元 DataGridViewCell)
KeyEntersEditMode(KeyEventArgs)

指定したキーに基づいて編集モードを開始するかどうかを決定します。

(継承元 DataGridViewCell)
KeyPressUnsharesRow(KeyPressEventArgs, Int32)

行内のセルにフォーカスがある間にキーが押された場合に、行が共有解除されるかどうかを示します。

(継承元 DataGridViewCell)
KeyUpUnsharesRow(KeyEventArgs, Int32)

フォーカスがセルにあるときにユーザーがキーを離したときに、親行が共有されていないかどうかを示します。

(継承元 DataGridViewCell)
LeaveUnsharesRow(Int32, Boolean)

フォーカスが行のセルから離れたときに、行の共有を解除するかどうかを示します。

(継承元 DataGridViewCell)
MemberwiseClone()

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

(継承元 Object)
MouseClickUnsharesRow(DataGridViewCellMouseEventArgs)

ユーザーがマウス ボタンをクリックしたときに、その行のセル上にポインターがある状態で行を共有解除するかどうかを示します。

(継承元 DataGridViewCell)
MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs)

ユーザーが行のセルをダブルクリックした場合に、行の共有を解除するかどうかを示します。

(継承元 DataGridViewCell)
MouseDownUnsharesRow(DataGridViewCellMouseEventArgs)

ポインターが行のセル上にある間にマウス ボタンを押したままにすると、行の共有が解除されるかどうかを示します。

(継承元 DataGridViewHeaderCell)
MouseEnterUnsharesRow(Int32)

マウス ポインターが行内のセルの上に移動したときに、行が共有解除されるかどうかを示します。

(継承元 DataGridViewHeaderCell)
MouseLeaveUnsharesRow(Int32)

マウス ポインターが行を離れたときに行の共有を解除するかどうかを示します。

(継承元 DataGridViewHeaderCell)
MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs)

マウス ポインターが行内のセルの上に移動したときに、行が共有解除されるかどうかを示します。

(継承元 DataGridViewCell)
MouseUpUnsharesRow(DataGridViewCellMouseEventArgs)

ポインターが行のセル上にある間にマウス ボタンが離されたときに、行の共有を解除するかどうかを示します。

(継承元 DataGridViewHeaderCell)
OnClick(DataGridViewCellEventArgs)

セルがクリックされたときに呼び出されます。

(継承元 DataGridViewCell)
OnContentClick(DataGridViewCellEventArgs)

セルの内容がクリックされたときに呼び出されます。

(継承元 DataGridViewCell)
OnContentDoubleClick(DataGridViewCellEventArgs)

セルの内容がダブルクリックされたときに呼び出されます。

(継承元 DataGridViewCell)
OnDataGridViewChanged()

セルの DataGridView プロパティが変更されたときに呼び出されます。

(継承元 DataGridViewCell)
OnDoubleClick(DataGridViewCellEventArgs)

セルがダブルクリックされたときに呼び出されます。

(継承元 DataGridViewCell)
OnEnter(Int32, Boolean)

フォーカスがセルに移動したときに呼び出されます。

(継承元 DataGridViewCell)
OnKeyDown(KeyEventArgs, Int32)

フォーカスがセルにあるときに文字キーが押されたときに呼び出されます。

(継承元 DataGridViewCell)
OnKeyPress(KeyPressEventArgs, Int32)

フォーカスがセルにある間にキーが押されたときに呼び出されます。

(継承元 DataGridViewCell)
OnKeyUp(KeyEventArgs, Int32)

フォーカスがセルにあるときに文字キーが離されたときに呼び出されます。

(継承元 DataGridViewCell)
OnLeave(Int32, Boolean)

セルからフォーカスが移動したときに呼び出されます。

(継承元 DataGridViewCell)
OnMouseClick(DataGridViewCellMouseEventArgs)

ポインターがセル上にあるときにユーザーがマウス ボタンをクリックしたときに呼び出されます。

(継承元 DataGridViewCell)
OnMouseDoubleClick(DataGridViewCellMouseEventArgs)

ポインターがセル上にあるときにユーザーがマウス ボタンをダブルクリックしたときに呼び出されます。

(継承元 DataGridViewCell)
OnMouseDown(DataGridViewCellMouseEventArgs)

ポインターがセル上にあるときにマウス ボタンを押したときに呼び出されます。

(継承元 DataGridViewHeaderCell)
OnMouseEnter(Int32)

マウス ポインターがセルに入ったときに呼び出されます。

(継承元 DataGridViewHeaderCell)
OnMouseLeave(Int32)

マウス ポインターがセルから離れると呼び出されます。

(継承元 DataGridViewHeaderCell)
OnMouseMove(DataGridViewCellMouseEventArgs)

マウス ポインターがセル内を移動したときに呼び出されます。

(継承元 DataGridViewCell)
OnMouseUp(DataGridViewCellMouseEventArgs)

ポインターがセルの上にある間にマウス ボタンが離されたときに呼び出されます。

(継承元 DataGridViewHeaderCell)
Paint(Graphics, Rectangle, Rectangle, Int32, DataGridViewElementStates, Object, Object, String, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle, DataGridViewPaintParts)

現在の DataGridViewColumnHeaderCellを塗りつぶします。

PaintBorder(Graphics, Rectangle, Rectangle, DataGridViewCellStyle, DataGridViewAdvancedBorderStyle)

現在の DataGridViewCellの境界線を塗りつぶします。

(継承元 DataGridViewCell)
PaintErrorIcon(Graphics, Rectangle, Rectangle, String)

現在の DataGridViewCellのエラー アイコンを描画します。

(継承元 DataGridViewCell)
ParseFormattedValue(Object, DataGridViewCellStyle, TypeConverter, TypeConverter)

表示用に書式設定された値を実際のセル値に変換します。

(継承元 DataGridViewCell)
PositionEditingControl(Boolean, Boolean, Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean)

DataGridView コントロール内のセルによってホストされる編集コントロールの場所とサイズを設定します。

(継承元 DataGridViewCell)
PositionEditingPanel(Rectangle, Rectangle, DataGridViewCellStyle, Boolean, Boolean, Boolean, Boolean)

セルによってホストされる編集パネルの位置とサイズを設定し、編集パネル内の編集コントロールの通常の境界を返します。

(継承元 DataGridViewCell)
RaiseCellClick(DataGridViewCellEventArgs)

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

(継承元 DataGridViewElement)
RaiseCellContentClick(DataGridViewCellEventArgs)

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

(継承元 DataGridViewElement)
RaiseCellContentDoubleClick(DataGridViewCellEventArgs)

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

(継承元 DataGridViewElement)
RaiseCellValueChanged(DataGridViewCellEventArgs)

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

(継承元 DataGridViewElement)
RaiseDataError(DataGridViewDataErrorEventArgs)

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

(継承元 DataGridViewElement)
RaiseMouseWheel(MouseEventArgs)

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

(継承元 DataGridViewElement)
SetValue(Int32, Object)

セルの値を設定します。

ToString()

セルの文字列形式を返します。

適用対象

こちらもご覧ください