C# Class ComponentFactory.Quicksilver.Layout.MetaElementCollection

Provides custom handling of the UIElement collection for a MetaPanel.
Inheritance: System.Windows.Controls.UIElementCollection
ファイルを表示 Open project: ComponentFactory/Quicksilver Class Usage Examples

Private Properties

Property Type Description
GetExternalEnumerator IEnumerator
GetInternalChild Visual
GetInternalEnumerator IEnumerator
InternalAdd void
InternalRemove void
ValidateElement void
VerifyWriteAccess void

Public Methods

Method 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.

Protected Methods

Method Description
OnUIElementsAdded ( UIElementsEventArgs e ) : void

Raises the UIElementsAdded event.

OnUIElementsRemove ( UIElementsEventArgs e ) : void

Raises the UIElementsRemove event.

Private Methods

Method 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 method

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

Clear() public method

Removes all elements from the collection.
public Clear ( ) : void
return void

Contains() public method

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

CopyTo() public method

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.
return void

CopyTo() public method

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.
return void

GetEnumerator() public method

Returns an enumerator that iterates through a collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

IndexOf() public method

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

Insert() public method

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.
return void

MetaElementCollection() public method

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.
return System

OnUIElementsAdded() protected method

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

OnUIElementsRemove() protected method

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

Remove() public method

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

RemoveAt() public method

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

RemoveRange() public method

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.
return void

this() public method

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.
return UIElement