DataGridViewCellCollection Sınıf
Tanım
İçindeki bir hücre koleksiyonunu temsil eder 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
- Devralma
- Öznitelikler
- Uygulamalar
Açıklamalar
DataGridViewCellCollectionnesneler, özelliği tarafından alınır DataGridViewRow.Cells .DataGridViewCellCollection objects are retrieved by the DataGridViewRow.Cells property.
Oluşturucular
DataGridViewCellCollection(DataGridViewRow) |
DataGridViewCellCollection sınıfının yeni bir örneğini başlatır.Initializes a new instance of the DataGridViewCellCollection class. |
Özellikler
Count |
Koleksiyondaki toplam öğe sayısını alır.Gets the total number of elements in the collection. (Devralındığı yer: BaseCollection) |
IsReadOnly |
Topluluğun salt okunur olup olmadığını gösteren bir değer alır.Gets a value indicating whether the collection is read-only. (Devralındığı yer: BaseCollection) |
IsSynchronized |
Erişiminin eşitlenip eşitlenmediğini gösteren bir değer alır ICollection .Gets a value indicating whether access to the ICollection is synchronized. (Devralındığı yer: BaseCollection) |
Item[Int32] |
Belirtilen dizin konumundaki hücreyi alır veya ayarlar.Gets or sets the cell at the provided index location. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class. |
Item[String] |
Sütundaki hücreyi, belirtilen ada sahip olarak alır veya ayarlar.Gets or sets the cell in the column with the provided name. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class. |
List |
İçeren bir ArrayList DataGridViewCellCollection nesne alır.Gets an ArrayList containing DataGridViewCellCollection objects. |
SyncRoot |
Erişimini eşitlemede kullanılabilecek bir nesne alır BaseCollection .Gets an object that can be used to synchronize access to the BaseCollection. (Devralındığı yer: BaseCollection) |
Yöntemler
Add(DataGridViewCell) |
Koleksiyona bir hücre ekler.Adds a cell to the collection. |
AddRange(DataGridViewCell[]) |
Koleksiyona bir hücre dizisi ekler.Adds an array of cells to the collection. |
Clear() |
Koleksiyondaki tüm hücreleri temizler.Clears all cells from the collection. |
Contains(DataGridViewCell) |
Belirtilen hücrenin koleksiyonda içerilip içerilmeyeceğini belirler.Determines whether the specified cell is contained in the collection. |
CopyTo(Array, Int32) |
Geçerli tek boyutlu tüm öğeleri Array Array belirtilen hedef dizinden başlayarak belirtilen tek boyutlu olarak kopyalar Array .Copies all the elements of the current one-dimensional Array to the specified one-dimensional Array starting at the specified destination Array index. (Devralındığı yer: BaseCollection) |
CopyTo(DataGridViewCell[], Int32) |
Tüm hücre koleksiyonunu dizi içindeki belirtilen konumdaki bir diziye kopyalar.Copies the entire collection of cells into an array at a specified location within the array. |
CreateObjRef(Type) |
Uzak bir nesneyle iletişim kurmak için kullanılan bir ara sunucu oluşturmak için gereken tüm bilgileri içeren bir nesne oluşturur.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Devralındığı yer: MarshalByRefObject) |
Equals(Object) |
Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object. (Devralındığı yer: Object) |
GetEnumerator() |
Koleksiyonun üyeleri arasında yineleme sağlayan nesneyi alır.Gets the object that enables iterating through the members of the collection. (Devralındığı yer: BaseCollection) |
GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
GetLifetimeService() |
Bu örnek için ömür ilkesini denetleyen geçerli ömür hizmeti nesnesini alır.Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Devralındığı yer: MarshalByRefObject) |
GetType() |
TypeGeçerli örneği alır.Gets the Type of the current instance. (Devralındığı yer: Object) |
IndexOf(DataGridViewCell) |
Belirtilen hücrenin dizinini döndürür.Returns the index of the specified cell. |
InitializeLifetimeService() |
Bu örnek için ömür ilkesini denetlemek üzere bir ömür hizmeti nesnesi alır.Obtains a lifetime service object to control the lifetime policy for this instance. (Devralındığı yer: MarshalByRefObject) |
Insert(Int32, DataGridViewCell) |
Belirtilen dizindeki koleksiyona bir hücre ekler.Inserts a cell into the collection at the specified index. |
MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
MemberwiseClone(Boolean) |
Geçerli nesnenin basit bir kopyasını oluşturur MarshalByRefObject .Creates a shallow copy of the current MarshalByRefObject object. (Devralındığı yer: MarshalByRefObject) |
OnCollectionChanged(CollectionChangeEventArgs) |
Olayını oluşturur CollectionChanged .Raises the CollectionChanged event. |
Remove(DataGridViewCell) |
Belirtilen hücreyi koleksiyondan kaldırır.Removes the specified cell from the collection. |
RemoveAt(Int32) |
Belirtilen dizindeki hücreyi kaldırır.Removes the cell at the specified index. |
ToString() |
Geçerli nesneyi temsil eden dizeyi döndürür.Returns a string that represents the current object. (Devralındığı yer: Object) |
Ekinlikler
CollectionChanged |
Koleksiyon değiştirildiğinde gerçekleşir.Occurs when the collection is changed. |
Belirtik Arabirim Kullanımları
ICollection.CopyTo(Array, Int32) |
Belirtilen dizinden başlayarak koleksiyonun öğelerini belirtilen diziye kopyalar.Copies the elements of the collection to the specified array, starting at the specified index. |
ICollection.Count |
Koleksiyonda bulunan öğelerin sayısını alır.Gets the number of elements contained in the collection. |
ICollection.IsSynchronized |
Koleksiyona erişimin eşitlenip eşitlenmediğini (iş parçacığı açısından güvenli) gösteren bir değer alır.Gets a value indicating whether access to the collection is synchronized (thread safe). |
ICollection.SyncRoot |
Koleksiyona erişimi eşzamanlı hale getirmek için kullanılabilecek bir nesne alır.Gets an object that can be used to synchronize access to the collection. |
IEnumerable.GetEnumerator() |
Bir toplulukta tekrarlanan bir numaralandırıcı döndürür.Returns an enumerator that iterates through a collection. |
IList.Add(Object) |
Bir öğeyi koleksiyona ekler.Adds an item to the collection. |
IList.Clear() |
Koleksiyonu temizler.Clears the collection. |
IList.Contains(Object) |
Koleksiyonda belirtilen değeri içerip içermediğini belirler.Determines whether the collection contains the specified value. |
IList.IndexOf(Object) |
Bir koleksiyondaki belirli bir öğenin dizinini belirler.Determines the index of a specific item in a collection. |
IList.Insert(Int32, Object) |
Belirtilen konumda koleksiyona bir öğe ekler.Inserts an item into the collection at the specified position. |
IList.IsFixedSize |
Koleksiyonun sabit boyuta sahip olup olmadığını gösteren bir değer alır.Gets a value indicating whether the collection has a fixed size. |
IList.IsReadOnly |
Koleksiyonun sabit boyuta sahip olup olmadığını gösteren bir değer alır.Gets a value indicating whether the collection has a fixed size. |
IList.Item[Int32] |
Belirtilen dizindeki öğeyi alır veya ayarlar.Gets or sets the element at the specified index. |
IList.Remove(Object) |
Belirli bir nesnenin ilk örneğini topluluktan kaldırır.Removes the first occurrence of a specific object from the collection. |
IList.RemoveAt(Int32) |
DataGridViewCellBelirtilen dizinde öğesini kaldırır.Removes the DataGridViewCell at the specified index. |
Uzantı Metotları
Cast<TResult>(IEnumerable) |
Öğesinin öğelerini IEnumerable belirtilen türe yayınlar.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Öğesinin öğelerini IEnumerable belirtilen bir türe göre filtreler.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Bir sorgunun paralelleştirilmesini mümkün hale getirme.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Bir IEnumerable öğesine dönüştürür IQueryable .Converts an IEnumerable to an IQueryable. |