DataGridViewCellCollection Klasa
Definicja
Reprezentuje kolekcję komórek w 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
[<System.ComponentModel.ListBindable(false)>]
type DataGridViewCellCollection = class
inherit BaseCollection
interface IList
interface ICollection
interface IEnumerable
Public Class DataGridViewCellCollection
Inherits BaseCollection
Implements IList
- Dziedziczenie
- Atrybuty
- Implementuje
Uwagi
DataGridViewCellCollectionobiekty są pobierane przez DataGridViewRow.Cells Właściwość.DataGridViewCellCollection objects are retrieved by the DataGridViewRow.Cells property.
Konstruktory
DataGridViewCellCollection(DataGridViewRow) |
Inicjuje nowe wystąpienie klasy DataGridViewCellCollection.Initializes a new instance of the DataGridViewCellCollection class. |
Właściwości
Count |
Pobiera łączną liczbę elementów w kolekcji.Gets the total number of elements in the collection. (Odziedziczone po BaseCollection) |
IsReadOnly |
Pobiera wartość wskazującą, czy kolekcja jest przeznaczona tylko do odczytu.Gets a value indicating whether the collection is read-only. (Odziedziczone po BaseCollection) |
IsSynchronized |
Pobiera wartość wskazującą, czy dostęp do programu ICollection jest synchronizowany.Gets a value indicating whether access to the ICollection is synchronized. (Odziedziczone po BaseCollection) |
Item[Int32] |
Pobiera lub ustawia komórkę w podanej lokalizacji indeksu.Gets or sets the cell at the provided index location. W języku C# ta właściwość jest indeksatorem DataGridViewCellCollection klasy.In C#, this property is the indexer for the DataGridViewCellCollection class. |
Item[String] |
Pobiera lub ustawia komórkę w kolumnie o podanej nazwie.Gets or sets the cell in the column with the provided name. W języku C# ta właściwość jest indeksatorem DataGridViewCellCollection klasy.In C#, this property is the indexer for the DataGridViewCellCollection class. |
List |
Pobiera ArrayList obiekty zawierające DataGridViewCellCollection .Gets an ArrayList containing DataGridViewCellCollection objects. |
SyncRoot |
Pobiera obiekt, który może służyć do synchronizowania dostępu do BaseCollection .Gets an object that can be used to synchronize access to the BaseCollection. (Odziedziczone po BaseCollection) |
Metody
Add(DataGridViewCell) |
Dodaje komórkę do kolekcji.Adds a cell to the collection. |
AddRange(DataGridViewCell[]) |
Dodaje tablicę komórek do kolekcji.Adds an array of cells to the collection. |
Clear() |
Czyści wszystkie komórki z kolekcji.Clears all cells from the collection. |
Contains(DataGridViewCell) |
Określa, czy określona komórka jest zawarta w kolekcji.Determines whether the specified cell is contained in the collection. |
CopyTo(Array, Int32) |
Kopiuje wszystkie elementy z prądu jednowymiarowego Array do określonego, Array rozpoczynając od określonego Array indeksu docelowego.Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (Odziedziczone po BaseCollection) |
CopyTo(DataGridViewCell[], Int32) |
Kopiuje całą kolekcję komórek do tablicy w określonej lokalizacji w tablicy.Copies the entire collection of cells into an array at a specified location within the array. |
CreateObjRef(Type) |
Tworzy obiekt, który zawiera wszystkie istotne informacje wymagane do wygenerowania serwera proxy używanego do komunikacji z obiektem zdalnym.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Odziedziczone po MarshalByRefObject) |
Equals(Object) |
Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.Determines whether the specified object is equal to the current object. (Odziedziczone po Object) |
GetEnumerator() |
Pobiera obiekt, który umożliwia wykonywanie iteracji przez elementy członkowskie kolekcji.Gets the object that enables iterating through the members of the collection. (Odziedziczone po BaseCollection) |
GetHashCode() |
Służy jako domyślna funkcja skrótu.Serves as the default hash function. (Odziedziczone po Object) |
GetLifetimeService() |
Nieaktualne.
Pobiera bieżący obiekt usługi okresu istnienia, który kontroluje zasady okresu istnienia dla tego wystąpienia.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Odziedziczone po MarshalByRefObject) |
GetType() |
Pobiera Type bieżące wystąpienie.Gets the Type of the current instance. (Odziedziczone po Object) |
IndexOf(DataGridViewCell) |
Zwraca indeks określonej komórki.Returns the index of the specified cell. |
InitializeLifetimeService() |
Nieaktualne.
Uzyskuje obiekt usługi istnienia w celu kontrolowania zasad okresu istnienia dla tego wystąpienia.Obtains a lifetime service object to control the lifetime policy for this instance. (Odziedziczone po MarshalByRefObject) |
Insert(Int32, DataGridViewCell) |
Wstawia komórkę do kolekcji o określonym indeksie.Inserts a cell into the collection at the specified index. |
MemberwiseClone() |
Tworzy skróconą kopię bieżącego elementu Object .Creates a shallow copy of the current Object. (Odziedziczone po Object) |
MemberwiseClone(Boolean) |
Tworzy skróconą kopię bieżącego MarshalByRefObject obiektu.Creates a shallow copy of the current MarshalByRefObject object. (Odziedziczone po MarshalByRefObject) |
OnCollectionChanged(CollectionChangeEventArgs) |
Podnosi CollectionChanged zdarzenie.Raises the CollectionChanged event. |
Remove(DataGridViewCell) |
Usuwa określoną komórkę z kolekcji.Removes the specified cell from the collection. |
RemoveAt(Int32) |
Usuwa komórkę z określonym indeksem.Removes the cell at the specified index. |
ToString() |
Zwraca ciąg reprezentujący bieżący obiekt.Returns a string that represents the current object. (Odziedziczone po Object) |
Zdarzenia
CollectionChanged |
Występuje, gdy kolekcja zostanie zmieniona.Occurs when the collection is changed. |
Jawne implementacje interfejsu
ICollection.CopyTo(Array, Int32) |
Kopiuje elementy kolekcji do określonej tablicy, rozpoczynając od określonego indeksu.Copies the elements of the collection to the specified array, starting at the specified index. |
ICollection.Count |
Pobiera liczbę elementów zawartych w kolekcji.Gets the number of elements contained in the collection. |
ICollection.IsSynchronized |
Pobiera wartość wskazującą, czy dostęp do kolekcji jest synchronizowany (bezpieczny wątkowo).Gets a value indicating whether access to the collection is synchronized (thread safe). |
ICollection.SyncRoot |
Pobiera obiekt, który może służyć do synchronizowania dostępu do kolekcji.Gets an object that can be used to synchronize access to the collection. |
IEnumerable.GetEnumerator() |
Zwraca moduł wyliczający, który iteruje po kolekcji.Returns an enumerator that iterates through a collection. |
IList.Add(Object) |
Dodaje element do kolekcji.Adds an item to the collection. |
IList.Clear() |
Czyści kolekcję.Clears the collection. |
IList.Contains(Object) |
Określa, czy kolekcja zawiera określoną wartość.Determines whether the collection contains the specified value. |
IList.IndexOf(Object) |
Określa indeks określonego elementu w kolekcji.Determines the index of a specific item in a collection. |
IList.Insert(Int32, Object) |
Wstawia element do kolekcji w określonej pozycji.Inserts an item into the collection at the specified position. |
IList.IsFixedSize |
Pobiera wartość wskazującą, czy kolekcja ma stały rozmiar.Gets a value indicating whether the collection has a fixed size. |
IList.IsReadOnly |
Pobiera wartość wskazującą, czy kolekcja ma stały rozmiar.Gets a value indicating whether the collection has a fixed size. |
IList.Item[Int32] |
Pobiera lub ustawia element pod określonym indeksem.Gets or sets the element at the specified index. |
IList.Remove(Object) |
Usuwa pierwsze wystąpienie konkretnego obiektu z kolekcji.Removes the first occurrence of a specific object from the collection. |
IList.RemoveAt(Int32) |
Usuwa DataGridViewCell o określonym indeksie.Removes the DataGridViewCell at the specified index. |
Metody rozszerzania
Cast<TResult>(IEnumerable) |
Rzutuje elementy elementu IEnumerable do określonego typu.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filtruje elementy IEnumerable w oparciu o określony typ.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Włącza przetwarzanie równoległe zapytania.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Konwertuje IEnumerable do IQueryable .Converts an IEnumerable to an IQueryable. |