CompositeCollection Sınıf
Tanım
Birden çok koleksiyonun ve öğenin tek bir liste olarak görüntülenmesini sağlar.Enables multiple collections and items to be displayed as a single list.
public ref class CompositeCollection : System::Collections::IList, System::Collections::Specialized::INotifyCollectionChanged, System::ComponentModel::ICollectionViewFactory, System::Windows::IWeakEventListener
[System.Windows.Localizability(System.Windows.LocalizationCategory.Ignore)]
public class CompositeCollection : System.Collections.IList, System.Collections.Specialized.INotifyCollectionChanged, System.ComponentModel.ICollectionViewFactory, System.Windows.IWeakEventListener
[<System.Windows.Localizability(System.Windows.LocalizationCategory.Ignore)>]
type CompositeCollection = class
interface ICollection
interface IEnumerable
interface IList
interface INotifyCollectionChanged
interface ICollectionViewFactory
interface IWeakEventListener
[<System.Windows.Localizability(System.Windows.LocalizationCategory.Ignore)>]
type CompositeCollection = class
interface IList
interface ICollection
interface IEnumerable
interface INotifyCollectionChanged
interface ICollectionViewFactory
interface IWeakEventListener
Public Class CompositeCollection
Implements ICollectionViewFactory, IList, INotifyCollectionChanged, IWeakEventListener
- Devralma
-
CompositeCollection
- Öznitelikler
- Uygulamalar
Açıklamalar
CompositeCollection dizeler, nesneler, XMLXML düğümler, öğeler ve diğer Koleksiyonlar gibi öğeleri içerebilir.CompositeCollection can contain items such as strings, objects, XMLXML nodes, elements, as well as other collections. ItemsControl, İçindeki verileri kullanarak CompositeCollection içeriğini kendi içeriğine göre oluşturur ItemTemplate .An ItemsControl uses the data in the CompositeCollection to generate its content according to its ItemTemplate. Koleksiyonlara bağlanacak nesneleri kullanma hakkında daha fazla bilgi için ItemsControl veri bağlamaya genel bakışkonusunun koleksiyonlara bağlama bölümüne bakın.For more information about using ItemsControl objects to bind to collections, see the Binding to Collections section of the Data Binding Overview.
Oluşturucular
CompositeCollection() |
CompositeCollectionBoş olan ve varsayılan ilk kapasiteye sahip olan sınıfın yeni bir örneğini oluşturur.Creates a new instance of the CompositeCollection class that is empty and has default initial capacity. |
CompositeCollection(Int32) |
CompositeCollectionBoş olan ve belirtilen ilk kapasiteye sahip olan sınıfın yeni bir örneğini oluşturur.Creates a new instance of the CompositeCollection class that is empty and has a specified initial capacity. |
Özellikler
Count |
Bu koleksiyonda depolanan öğelerin sayısını alır.Gets the number of items stored in this collection. |
Item[Int32] |
Koleksiyonda bulunan sıfır tabanlı uzaklığında öğeyi alan veya değiştiren Indexer özelliği.Indexer property that retrieves or replaces the item at the given zero-based offset in the collection. |
Yöntemler
Add(Object) |
Belirtilen öğeyi bu koleksiyona ekler.Adds the specified item to this collection. |
Clear() |
Koleksiyonu temizler.Clears the collection. |
Contains(Object) |
Belirli bir öğenin bu koleksiyonda olup olmadığını denetler.Checks to see if a given item is in this collection. |
CopyTo(Array, Int32) |
Nesne başvurularının bu koleksiyondan verilen diziye basit bir kopyasını oluşturur.Makes a shallow copy of object references from this collection to the given array. |
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) |
GetHashCode() |
Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function. (Devralındığı yer: Object) |
GetType() |
TypeGeçerli örneği alır.Gets the Type of the current instance. (Devralındığı yer: Object) |
IndexOf(Object) |
Bu koleksiyonda verilen öğenin bulunduğu dizini döndürür.Returns the index in this collection where the given item is found. |
Insert(Int32, Object) |
Belirli bir dizindeki koleksiyona bir öğe ekler.Inserts an item in the collection at a given index. Verilen konumdan sonraki tüm öğeler bir aşağı taşınır.All items after the given position are moved down by one. |
MemberwiseClone() |
Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object. (Devralındığı yer: Object) |
ReceiveWeakEvent(Type, Object, EventArgs) |
Merkezi olay tablosundan olayları işler.Handles events from the centralized event table. |
Remove(Object) |
Koleksiyondan verilen öğe başvurusunu kaldırır.Removes the given item reference from the collection. Kalan tüm öğeler bir yukarı taşınır.All remaining items move up by one. |
RemoveAt(Int32) |
Verilen dizindeki koleksiyondan bir öğeyi kaldırır.Removes an item from the collection at the given index. Kalan tüm öğeler bir yukarı taşınır.All remaining items move up by one. |
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ştiğinde, bir öğe ekleyerek veya kaldırarak gerçekleşir.Occurs when the collection changes, either by adding or removing an item. |
Belirtik Arabirim Kullanımları
ICollection.IsSynchronized |
Bu üye altyapıyı destekler Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ve doğrudan kodunuzdan kullanılmaya yönelik değildir.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
ICollection.SyncRoot |
Bu üye altyapıyı destekler Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ve doğrudan kodunuzdan kullanılmaya yönelik değildir.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
ICollectionViewFactory.CreateView() |
Bu üye altyapıyı destekler Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ve doğrudan kodunuzdan kullanılmaya yönelik değildir.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
IEnumerable.GetEnumerator() |
Bir Numaralandırıcı döndürür.Returns an enumerator. |
IList.IsFixedSize |
Bu üye altyapıyı destekler Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ve doğrudan kodunuzdan kullanılmaya yönelik değildir.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
IList.IsReadOnly |
Bu üye altyapıyı destekler Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ve doğrudan kodunuzdan kullanılmaya yönelik değildir.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
INotifyCollectionChanged.CollectionChanged |
Koleksiyon değiştirildiğinde gerçekleşir.Occurs when the collection has changed. |
IWeakEventListener.ReceiveWeakEvent(Type, Object, EventArgs) |
Bu üye altyapıyı destekler Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) ve doğrudan kodunuzdan kullanılmaya yönelik değildir.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. |
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. |