DataGridView.DataGridViewControlCollection クラス

定義

DataGridView 上に含まれているコントロールのコレクションを表します。

public: ref class DataGridView::DataGridViewControlCollection : System::Windows::Forms::Control::ControlCollection
[System.Runtime.InteropServices.ComVisible(false)]
public class DataGridView.DataGridViewControlCollection : System.Windows.Forms.Control.ControlCollection
public class DataGridView.DataGridViewControlCollection : System.Windows.Forms.Control.ControlCollection
[<System.Runtime.InteropServices.ComVisible(false)>]
type DataGridView.DataGridViewControlCollection = class
    inherit Control.ControlCollection
type DataGridView.DataGridViewControlCollection = class
    inherit Control.ControlCollection
Public Class DataGridView.DataGridViewControlCollection
Inherits Control.ControlCollection
継承
DataGridView.DataGridViewControlCollection
属性

注釈

コントロールのプロパティはControls、型のインスタンスにキャストできる型Control.ControlCollectionのインスタンスを返しますDataGridView.DataGridViewControlCollectionDataGridView

これには DataGridView.DataGridViewControlCollection 、編集コントロールや上のスクロール バーなどのコントロールが DataGridView含まれます。

コンストラクター

DataGridView.DataGridViewControlCollection(DataGridView)

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

プロパティ

Count

コレクションに格納されている要素の数を取得します。

(継承元 Control.ControlCollection)
IsReadOnly

このコレクション オブジェクトが読み取り専用かどうかを示す値を取得します。

(継承元 Control.ControlCollection)
Item[Int32]

コレクション内の指定したインデックス位置にある Control を示します。

(継承元 Control.ControlCollection)
Item[String]

コレクション内の指定したキーを持つ Control を示します。

(継承元 Control.ControlCollection)
Owner

この Control.ControlCollection を所有しているコントロールを取得します。

(継承元 Control.ControlCollection)

メソッド

Add(Control)

指定したコントロールをコントロール コレクションに追加します。

(継承元 Control.ControlCollection)
AddRange(Control[])

コレクションにコントロール オブジェクトの配列を追加します。

(継承元 Control.ControlCollection)
Clear()

DataGridView からすべてのコントロールを削除します。

Contains(Control)

指定したコントロールがコレクションのメンバーかどうかを確認します。

(継承元 Control.ControlCollection)
ContainsKey(String)

指定したキーを持つ項目が Control.ControlCollection に含まれているかどうかを確認します。

(継承元 Control.ControlCollection)
CopyTo(Array, Int32)

特定の配列インデックスを開始位置として、配列にコレクションの要素をコピーします。

(継承元 Control.ControlCollection)
CopyTo(Control[], Int32)

DataGridView.DataGridViewControlCollection の配列の指定したインデックスを開始位置として、Control の内容をその配列にコピーします。

Equals(Object)

現在のコレクション オブジェクトと指定したオブジェクトが等しいかどうかを示します。

(継承元 Control.ControlCollection)
Find(String, Boolean)

コントロールの Name プロパティに基づいてコントロールを検索し、一致するすべてのコントロールの配列を構築します。

(継承元 Control.ControlCollection)
GetChildIndex(Control)

コントロール コレクション内の指定した子コントロールのインデックスを取得します。

(継承元 Control.ControlCollection)
GetChildIndex(Control, Boolean)

コントロール コレクション内の指定した子コントロールのインデックスを取得し、オプションとして、指定したコントロールがコントロール コレクション内に存在しない場合に例外を発生させます。

(継承元 Control.ControlCollection)
GetEnumerator()

Control.ControlCollection の反復処理に使用する列挙体オブジェクトへの参照を取得します。

(継承元 Control.ControlCollection)
GetHashCode()

このインスタンスのハッシュ コードを返します。

(継承元 Control.ControlCollection)
GetType()

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

(継承元 Object)
IndexOf(Control)

コントロール コレクション内の指定したコントロールのインデックスを取得します。

(継承元 Control.ControlCollection)
IndexOfKey(String)

指定した項目がこのコレクション内で最初に見つかった位置のインデックスを取得します。

(継承元 Control.ControlCollection)
Insert(Int32, Control)

Control 内の指定したインデックスに、指定した DataGridView.DataGridViewControlCollection を挿入します。

MemberwiseClone()

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

(継承元 Object)
Remove(Control)

指定したコントロールを DataGridView.DataGridViewControlCollection から削除します。

RemoveAt(Int32)

指定したインデックス位置にあるコントロール コレクションからコントロールを削除します。

(継承元 Control.ControlCollection)
RemoveByKey(String)

指定したキーを持つ子コントロールを削除します。

(継承元 Control.ControlCollection)
SetChildIndex(Control, Int32)

コレクション内の指定した子コントロールのインデックスを指定したインデックス値に設定します。

(継承元 Control.ControlCollection)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

ICloneable.Clone()

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

このメンバーの詳細については、「Clone()」をご覧ください。

(継承元 Control.ControlCollection)
ICollection.IsSynchronized

このメンバーの説明については、IsSynchronized プロパティを参照してください。

(継承元 ArrangedElementCollection)
ICollection.SyncRoot

このメンバーの説明については、SyncRoot プロパティを参照してください。

(継承元 ArrangedElementCollection)
IList.Add(Object)

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

このメンバーの詳細については、「Add(Object)」をご覧ください。

(継承元 Control.ControlCollection)
IList.Clear()

このメンバーの説明については、Clear() メソッドのトピックを参照してください。

(継承元 ArrangedElementCollection)
IList.IsFixedSize

このメンバーの説明については、IsFixedSize プロパティを参照してください。

(継承元 ArrangedElementCollection)
IList.Item[Int32]

このメンバーの説明については、Item[Int32] プロパティを参照してください。

(継承元 ArrangedElementCollection)
IList.Remove(Object)

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

このメンバーの詳細については、「Remove(Object)」をご覧ください。

(継承元 Control.ControlCollection)
IList.RemoveAt(Int32)

このメンバーの説明については、RemoveAt(Int32) メソッドのトピックを参照してください。

(継承元 ArrangedElementCollection)

拡張メソッド

Cast<TResult>(IEnumerable)

IEnumerable の要素を、指定した型にキャストします。

OfType<TResult>(IEnumerable)

指定された型に基づいて IEnumerable の要素をフィルター処理します。

AsParallel(IEnumerable)

クエリの並列化を有効にします。

AsQueryable(IEnumerable)

IEnumerableIQueryable に変換します。

適用対象

こちらもご覧ください