DataGridViewSelectedCellCollection Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
[<System.ComponentModel.ListBindable(false)>]
type DataGridViewSelectedCellCollection = class
inherit BaseCollection
interface IList
interface ICollection
interface IEnumerable
Public Class DataGridViewSelectedCellCollection
Inherits BaseCollection
Implements IList
- Inheritance
- Attributes
- Implements
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. (Inherited from BaseCollection) |
Is |
Gets a value indicating whether the collection is read-only. (Inherited from BaseCollection) |
Is |
Gets a value indicating whether access to the ICollection is synchronized. (Inherited from BaseCollection) |
Item[Int32] |
Gets the cell at the specified index. |
List |
Gets a list of elements in the collection. |
Sync |
Gets an object that can be used to synchronize access to the BaseCollection. (Inherited from BaseCollection) |
Clear() |
Clears the collection. |
Contains(Data |
Determines whether the specified cell is contained in the collection. |
Copy |
Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (Inherited from BaseCollection) |
Copy |
Copies the elements of the collection to the specified DataGridViewCell array, starting at the specified index. |
Create |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Gets the object that enables iterating through the members of the collection. (Inherited from BaseCollection) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Obsolete.
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Initialize |
Obsolete.
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
Insert(Int32, Data |
Inserts a cell into the collection. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) |
To |
Returns a string that represents the current object. (Inherited from Object) |
ICollection. |
Copies the elements of the collection to the specified array, starting at the specified index. |
ICollection. |
Gets the number of elements in the collection. |
ICollection. |
Gets a value indicating whether access to the collection is synchronized (thread safe). |
ICollection. |
Gets an object that can be used to synchronize access to the collection. |
IEnumerable. |
Returns an enumerator that can be used to iterate through the collection. |
IList. |
Implements the Add(Object) method. Always throws NotSupportedException. |
IList. |
Implements the Clear() method. Always throws NotSupportedException. |
IList. |
Determines whether the specified cell is contained in the collection. |
IList. |
Returns the index of the specified cell. |
IList. |
Implements the Insert(Int32, Object) method. Always throws NotSupportedException. |
IList. |
Gets a value indicating whether the collection has a fixed size. |
IList. |
Gets a value indicating whether the collection is read-only. |
IList. |
Gets the element at the specified index. |
IList. |
Implements the Remove(Object) method. Always throws NotSupportedException. |
IList. |
Implements the RemoveAt(Int32) method. Always throws NotSupportedException. |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
Of |
Filters the elements of an IEnumerable based on a specified type. |
As |
Enables parallelization of a query. |
As |
Converts an IEnumerable to an IQueryable. |
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: