DataGridViewSelectedCellCollection クラス
定義
DataGridView 内で選択されているセルのコレクションを表します。Represents a collection of cells that are selected in a DataGridView.
public ref class DataGridViewSelectedCellCollection : System::Windows::Forms::BaseCollection, System::Collections::IList
[System.ComponentModel.ListBindable(false)]
public class DataGridViewSelectedCellCollection : System.Windows.Forms.BaseCollection, System.Collections.IList
type DataGridViewSelectedCellCollection = class
inherit BaseCollection
interface IList
interface ICollection
interface IEnumerable
Public Class DataGridViewSelectedCellCollection
Inherits BaseCollection
Implements IList
- 継承
- 属性
- 実装
注釈
コレクション内のセルの順序は、選択された順序と一致するとは限りません。The order of cells in the collection is not guaranteed to match the order in which they were selected.
プロパティ
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 the cell at the specified index. |
List |
コレクション内の要素のリストを取得します。Gets a list of elements in the collection. |
SyncRoot |
BaseCollection へのアクセスを同期するために使用できるオブジェクトを取得します。Gets an object that can be used to synchronize access to the BaseCollection. (継承元 BaseCollection) |
メソッド
Clear() |
コレクションを空にします。Clears 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) |
指定したインデックスを開始位置として、指定した DataGridViewCell 配列にコレクション要素をコピーします。Copies the elements of the collection to the specified DataGridViewCell array, starting at the specified index. |
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) |
InitializeLifetimeService() |
このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。Obtains a lifetime service object to control the lifetime policy for this instance. (継承元 MarshalByRefObject) |
Insert(Int32, DataGridViewCell) |
コレクションにセルを挿入します。Inserts a cell into the collection. |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
MemberwiseClone(Boolean) |
現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。Creates a shallow copy of the current MarshalByRefObject object. (継承元 MarshalByRefObject) |
ToString() |
現在のオブジェクトを表す string を返します。Returns a string that represents the current object. (継承元 Object) |
明示的なインターフェイスの実装
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 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 can be used to iterate through the collection. |
IList.Add(Object) |
Add(Object) メソッドを実装します。Implements the Add(Object) method. 常に NotSupportedException をスローします。Always throws NotSupportedException. |
IList.Clear() |
Clear() メソッドを実装します。Implements the Clear() method. 常に NotSupportedException をスローします。Always throws NotSupportedException. |
IList.Contains(Object) |
指定したセルがコレクション内にあるかどうかを判断します。Determines whether the specified cell is contained in the collection. |
IList.IndexOf(Object) |
指定したセルのインデックスを返します。Returns the index of the specified cell. |
IList.Insert(Int32, Object) |
Insert(Int32, Object) メソッドを実装します。Implements the Insert(Int32, Object) method. 常に NotSupportedException をスローします。Always throws NotSupportedException. |
IList.IsFixedSize |
コレクションが固定サイズかどうかを示す値を取得します。Gets a value indicating whether the collection has a fixed size. |
IList.IsReadOnly |
コレクションが読み取り専用かどうかを示す値を取得します。Gets a value indicating whether the collection is read-only. |
IList.Item[Int32] |
指定したインデックス位置にある要素を取得します。Gets the element at the specified index. |
IList.Remove(Object) |
Remove(Object) メソッドを実装します。Implements the Remove(Object) method. 常に NotSupportedException をスローします。Always throws NotSupportedException. |
IList.RemoveAt(Int32) |
RemoveAt(Int32) メソッドを実装します。Implements the RemoveAt(Int32) method. 常に NotSupportedException をスローします。Always throws NotSupportedException. |
拡張メソッド
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. |