C# Class ComponentFactory.Quicksilver.Layout.MetaElementCollection

Provides custom handling of the UIElement collection for a MetaPanel.
Inheritance: System.Windows.Controls.UIElementCollection
Afficher le fichier Open project: ComponentFactory/Quicksilver Class Usage Examples

Private Properties

Свойство Type Description
GetExternalEnumerator IEnumerator
GetInternalChild Visual
GetInternalEnumerator IEnumerator
InternalAdd void
InternalRemove void
ValidateElement void
VerifyWriteAccess void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnUIElementsAdded ( UIElementsEventArgs e ) : void

Raises the UIElementsAdded event.

OnUIElementsRemove ( UIElementsEventArgs e ) : void

Raises the UIElementsRemove event.

Private Methods

Méthode Description
GetExternalEnumerator ( ) : IEnumerator
GetInternalChild ( int index ) : Visual
GetInternalEnumerator ( ) : IEnumerator
InternalAdd ( UIElement element ) : void
InternalRemove ( UIElement element ) : void
ValidateElement ( UIElement element ) : void
VerifyWriteAccess ( ) : void

Method Details

Add() public méthode

Adds the specified element to the collection.
public Add ( UIElement element ) : int
element UIElement The UIElement to add.
Résultat int

Clear() public méthode

Removes all elements from the collection.
public Clear ( ) : void
Résultat void

Contains() public méthode

Determines whether the collection contains a specific element.
public Contains ( UIElement element ) : bool
element UIElement The UIElement to locate in the collection.
Résultat bool

CopyTo() public méthode

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.
Résultat void

CopyTo() public méthode

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.
Résultat void

GetEnumerator() public méthode

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

IndexOf() public méthode

Determines the index of a specific item in the collection.
public IndexOf ( UIElement element ) : int
element UIElement The UIElement to locate in the collection.
Résultat int

Insert() public méthode

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.
Résultat void

MetaElementCollection() public méthode

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.
Résultat System

OnUIElementsAdded() protected méthode

Raises the UIElementsAdded event.
protected OnUIElementsAdded ( UIElementsEventArgs e ) : void
e UIElementsEventArgs An UIElementsEventArgs containing the event data.
Résultat void

OnUIElementsRemove() protected méthode

Raises the UIElementsRemove event.
protected OnUIElementsRemove ( UIElementsEventArgs e ) : void
e UIElementsEventArgs An UIElementsEventArgs containing the event data.
Résultat void

Remove() public méthode

Removes the specified element from the collection.
public Remove ( UIElement element ) : void
element UIElement The element to remove from the collection.
Résultat void

RemoveAt() public méthode

Removes the UIElement at the specified index.
public RemoveAt ( int index ) : void
index int The index of the UIElement that you want to remove.
Résultat void

RemoveRange() public méthode

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.
Résultat void

this() public méthode

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.
Résultat UIElement