C# Класс ComponentFactory.Quicksilver.Layout.MetaElementCollection

Provides custom handling of the UIElement collection for a MetaPanel.
Наследование: System.Windows.Controls.UIElementCollection
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetExternalEnumerator IEnumerator
GetInternalChild Visual
GetInternalEnumerator IEnumerator
InternalAdd void
InternalRemove void
ValidateElement void
VerifyWriteAccess void

Открытые методы

Метод Описание
Add ( UIElement element ) : int

Adds the specified element to the collection.

Clear ( ) : void

Removes all elements from the collection.

Contains ( UIElement element ) : bool

Determines whether the collection contains a specific element.

CopyTo ( Array array, int index ) : void

Copies the elements from the collection to the array.

CopyTo ( UIElement array, int index ) : void

Copies the elements from the collection to the element array.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

IndexOf ( UIElement element ) : int

Determines the index of a specific item in the collection.

Insert ( int index, UIElement element ) : void

Inserts an element into a collection at the specified index position.

MetaElementCollection ( UIElement visualParent, FrameworkElement logicalParent ) : System

Initialize a new instance of the MetaElementCollection class.

Remove ( UIElement element ) : void

Removes the specified element from the collection.

RemoveAt ( int index ) : void

Removes the UIElement at the specified index.

RemoveRange ( int index, int count ) : void

Removes a range of elements from the collection.

this ( int index ) : UIElement

Gets or sets the UIElement stored at the zero-based index position of the collection.

Защищенные методы

Метод Описание
OnUIElementsAdded ( UIElementsEventArgs e ) : void

Raises the UIElementsAdded event.

OnUIElementsRemove ( UIElementsEventArgs e ) : void

Raises the UIElementsRemove event.

Приватные методы

Метод Описание
GetExternalEnumerator ( ) : IEnumerator
GetInternalChild ( int index ) : Visual
GetInternalEnumerator ( ) : IEnumerator
InternalAdd ( UIElement element ) : void
InternalRemove ( UIElement element ) : void
ValidateElement ( UIElement element ) : void
VerifyWriteAccess ( ) : void

Описание методов

Add() публичный Метод

Adds the specified element to the collection.
public Add ( UIElement element ) : int
element UIElement The UIElement to add.
Результат int

Clear() публичный Метод

Removes all elements from the collection.
public Clear ( ) : void
Результат void

Contains() публичный Метод

Determines whether the collection contains a specific element.
public Contains ( UIElement element ) : bool
element UIElement The UIElement to locate in the collection.
Результат bool

CopyTo() публичный Метод

Copies the elements from the collection to the array.
public CopyTo ( Array array, int index ) : void
array System.Array Array that is the destination for copying.
index int Zero-based index in the array at which copying begins.
Результат void

CopyTo() публичный Метод

Copies the elements from the collection to the element array.
public CopyTo ( UIElement array, int index ) : void
array UIElement UIElement that is the destination for copying.
index int Zero-based index in the array at which copying begins.
Результат void

GetEnumerator() публичный Метод

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

IndexOf() публичный Метод

Determines the index of a specific item in the collection.
public IndexOf ( UIElement element ) : int
element UIElement The UIElement to locate in the collection.
Результат int

Insert() публичный Метод

Inserts an element into a collection at the specified index position.
public Insert ( int index, UIElement element ) : void
index int The index position where you want to insert the element.
element UIElement The element to insert into the collection.
Результат void

MetaElementCollection() публичный Метод

Initialize a new instance of the MetaElementCollection class.
public MetaElementCollection ( UIElement visualParent, FrameworkElement logicalParent ) : System
visualParent UIElement The UIElement parent of the collection.
logicalParent System.Windows.FrameworkElement The logical parent of the elements in the collection.
Результат System

OnUIElementsAdded() защищенный Метод

Raises the UIElementsAdded event.
protected OnUIElementsAdded ( UIElementsEventArgs e ) : void
e UIElementsEventArgs An UIElementsEventArgs containing the event data.
Результат void

OnUIElementsRemove() защищенный Метод

Raises the UIElementsRemove event.
protected OnUIElementsRemove ( UIElementsEventArgs e ) : void
e UIElementsEventArgs An UIElementsEventArgs containing the event data.
Результат void

Remove() публичный Метод

Removes the specified element from the collection.
public Remove ( UIElement element ) : void
element UIElement The element to remove from the collection.
Результат void

RemoveAt() публичный Метод

Removes the UIElement at the specified index.
public RemoveAt ( int index ) : void
index int The index of the UIElement that you want to remove.
Результат void

RemoveRange() публичный Метод

Removes a range of elements from the collection.
public RemoveRange ( int index, int count ) : void
index int The index position of the element where removal begins.
count int The number of elements to remove.
Результат void

this() публичный Метод

Gets or sets the UIElement stored at the zero-based index position of the collection.
public this ( int index ) : UIElement
index int The index position of the UIElement.
Результат UIElement