DataGridViewCellCollection クラス
定義
DataGridViewRow 内のセルのコレクションを表します。Represents a collection of cells in a DataGridViewRow.
public ref class DataGridViewCellCollection : System::Windows::Forms::BaseCollection, System::Collections::IList
[System.ComponentModel.ListBindable(false)]
public class DataGridViewCellCollection : System.Windows.Forms.BaseCollection, System.Collections.IList
type DataGridViewCellCollection = class
inherit BaseCollection
interface IList
interface ICollection
interface IEnumerable
Public Class DataGridViewCellCollection
Inherits BaseCollection
Implements IList
- 継承
- 属性
- 実装
注釈
DataGridViewCellCollectionオブジェクトは、 DataGridViewRow.Cellsプロパティによって取得されます。DataGridViewCellCollection objects are retrieved by the DataGridViewRow.Cells property.
コンストラクター
DataGridViewCellCollection(DataGridViewRow) |
DataGridViewCellCollection クラスの新しいインスタンスを初期化します。Initializes a new instance of the DataGridViewCellCollection class. |
プロパティ
Count |
コレクション内の要素の合計数を取得します。Gets the total number of elements in the collection. (継承元 BaseCollection) |
IsReadOnly |
コレクションが読み取り専用かどうかを示す値を取得します。Gets a value indicating whether the collection is read-only. (継承元 BaseCollection) |
IsSynchronized |
ICollection へのアクセスの同期がとられているかどうかを示す値を取得します。Gets a value indicating whether access to the ICollection is synchronized. (継承元 BaseCollection) |
Item[Int32] |
指定したインデックス位置にあるセルを取得または設定します。Gets or sets the cell at the provided index location. C# では、このプロパティは DataGridViewCellCollection クラスのインデクサーです。In C#, this property is the indexer for the DataGridViewCellCollection class. |
Item[String] |
指定した名前の列に含まれるセルを取得または設定します。Gets or sets the cell in the column with the provided name. C# では、このプロパティは DataGridViewCellCollection クラスのインデクサーです。In C#, this property is the indexer for the DataGridViewCellCollection class. |
List |
ArrayList オブジェクトが含まれる DataGridViewCellCollection を取得します。Gets an ArrayList containing DataGridViewCellCollection objects. |
SyncRoot |
BaseCollection へのアクセスを同期するために使用できるオブジェクトを取得します。Gets an object that can be used to synchronize access to the BaseCollection. (継承元 BaseCollection) |
メソッド
Add(DataGridViewCell) |
セルをコレクションに追加します。Adds a cell to the collection. |
AddRange(DataGridViewCell[]) |
コレクションにセルの配列を追加します。Adds an array of cells to the collection. |
Clear() |
コレクションからすべてのセルを削除します。Clears all cells from the collection. |
Contains(DataGridViewCell) |
指定したセルがコレクション内にあるかどうかを判断します。Determines whether the specified cell is contained in the collection. |
CopyTo(Array, Int32) |
現在の 1 次元 Array のすべての要素を、指定した 1 次元 Array に Array の指定したコピー先インデックスを開始位置としてコピーします。Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (継承元 BaseCollection) |
CopyTo(DataGridViewCell[], Int32) |
セルのコレクション全体を配列内の指定した位置にコピーします。Copies the entire collection of cells into an array at a specified location within the array. |
CreateObjRef(Type) |
リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (継承元 MarshalByRefObject) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判定します。Determines whether the specified object is equal to the current object. (継承元 Object) |
GetEnumerator() |
コレクションのメンバーを反復処理できるオブジェクトを取得します。Gets the object that enables iterating through the members of the collection. (継承元 BaseCollection) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetLifetimeService() |
対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。Retrieves the current lifetime service object that controls the lifetime policy for this instance. (継承元 MarshalByRefObject) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
IndexOf(DataGridViewCell) |
指定したセルのインデックスを返します。Returns the index of the specified cell. |
InitializeLifetimeService() |
このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。Obtains a lifetime service object to control the lifetime policy for this instance. (継承元 MarshalByRefObject) |
Insert(Int32, DataGridViewCell) |
コレクション内の指定したインデックスにセルを挿入します。Inserts a cell into the collection at the specified index. |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
MemberwiseClone(Boolean) |
現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。Creates a shallow copy of the current MarshalByRefObject object. (継承元 MarshalByRefObject) |
OnCollectionChanged(CollectionChangeEventArgs) |
CollectionChanged イベントを発生させます。Raises the CollectionChanged event. |
Remove(DataGridViewCell) |
指定したセルをコレクションから削除します。Removes the specified cell from the collection. |
RemoveAt(Int32) |
指定したインデックスにあるセルを削除します。Removes the cell at the specified index. |
ToString() |
現在のオブジェクトを表す string を返します。Returns a string that represents the current object. (継承元 Object) |
イベント
CollectionChanged |
コレクションが変更されているときに発生します。Occurs when the collection is changed. |
明示的なインターフェイスの実装
ICollection.CopyTo(Array, Int32) |
指定したインデックスを開始位置として、指定した配列にコレクション要素をコピーします。Copies the elements of the collection to the specified array, starting at the specified index. |
ICollection.Count |
コレクションに格納されている要素の数を取得します。Gets the number of elements contained in the collection. |
ICollection.IsSynchronized |
コレクションへのアクセスが同期されている (スレッド セーフである) かどうかを示す値を取得します。Gets a value indicating whether access to the collection is synchronized (thread safe). |
ICollection.SyncRoot |
コレクションへのアクセスを同期するために使用できるオブジェクトを取得します。Gets an object that can be used to synchronize access to the collection. |
IEnumerable.GetEnumerator() |
コレクションを反復処理する列挙子を返します。Returns an enumerator that iterates through a collection. |
IList.Add(Object) |
項目をコレクションに追加します。Adds an item to the collection. |
IList.Clear() |
コレクションを空にします。Clears the collection. |
IList.Contains(Object) |
指定した値がコレクションに格納されているかどうかを確認します。Determines whether the collection contains the specified value. |
IList.IndexOf(Object) |
コレクション内での指定した項目のインデックスを調べます。Determines the index of a specific item in a collection. |
IList.Insert(Int32, Object) |
コレクション内の指定した位置に項目を挿入します。Inserts an item into the collection at the specified position. |
IList.IsFixedSize |
コレクションが固定サイズかどうかを示す値を取得します。Gets a value indicating whether the collection has a fixed size. |
IList.IsReadOnly |
コレクションが固定サイズかどうかを示す値を取得します。Gets a value indicating whether the collection has a fixed size. |
IList.Item[Int32] |
指定したインデックスにある要素を取得または設定します。Gets or sets the element at the specified index. |
IList.Remove(Object) |
特定のオブジェクトの最初に出現したものをコレクションから削除します。Removes the first occurrence of a specific object from the collection. |
IList.RemoveAt(Int32) |
指定したインデックス位置にある DataGridViewCell を削除します。Removes the DataGridViewCell at the specified index. |
拡張メソッド
Cast<TResult>(IEnumerable) |
IEnumerable の要素を、指定した型にキャストします。Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
指定された型に基づいて IEnumerable の要素をフィルター処理します。Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
クエリの並列化を有効にします。Enables parallelization of a query. |
AsQueryable(IEnumerable) |
IEnumerable を IQueryable に変換します。Converts an IEnumerable to an IQueryable. |