ClassUILayerStack
Represents a stack of UI layers that can be used to manage the rendering order and visibility of UI components.
Definition
Namespace:Telerik.Windows.Documents.UI.Layers
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class UILayerStack : ICollection<IUILayer>, IEnumerable<IUILayer>, IEnumerable
Inheritance: objectUILayerStack
Implements:
Constructors
UILayerStack()
Declaration
public UILayerStack()
Properties
Count
Gets the number of layers in the UI layer stack.
IsReadOnly
Gets a value indicating whether the layer stack is read-only.
Methods
AddAfter(string, IUILayer)
Adds a specified UI layer after a given layer identified by its name.
Declaration
public bool AddAfter(string presentedLayerName, IUILayer layer)
Parameters
presentedLayerName
The name of the layer after which the new layer will be added.
layer
The UI layer to be added.
Returns
Returns true if the layer was successfully added; otherwise, false.
AddBefore(string, IUILayer)
Adds a specified UI layer before an existing layer in the UILayerStack.
Declaration
public bool AddBefore(string presentedLayerName, IUILayer layer)
Parameters
presentedLayerName
The name of the existing layer before which the new layer will be added.
layer
The new UI layer to be added to the stack.
Returns
Returns true if the layer was successfully added; otherwise, false.
AddFirst(IUILayer)
Adds a new UI layer to the beginning of the layer stack.
Declaration
public void AddFirst(IUILayer layer)
Parameters
layer
The UI layer to be added to the stack.
AddLast(IUILayer)
Adds a new layer to the end of the layer stack.
Declaration
public void AddLast(IUILayer layer)
Parameters
layer
The UI layer to be added to the stack.
Clear()
Clears all layers from the UILayerStack, removing any elements currently present.
Declaration
public void Clear()
Implements
Contains(IUILayer)
Determines whether the specified UI layer exists in the layer stack.
Contains(string)
Determines whether the specified string is contained within the UILayerStack.
CopyTo(IUILayer[], int)
Copies the elements of the UILayerStack to a specified array, starting at a particular index.
Declaration
public void CopyTo(IUILayer[] array, int arrayIndex)
Parameters
array
IUILayer[]
The one-dimensional array that is the destination of the elements copied from the UILayerStack.
arrayIndex
The zero-based index in the array at which storing the copied elements will begin.
Implements
GetEnumerator()
Retrieves an enumerator that iterates through the elements of the UILayerStack.
Declaration
public IEnumerator<IUILayer> GetEnumerator()
Returns
An enumerator that provides access to the elements in the UILayerStack.
Implements
GetLayerByName(string)
Retrieves a specific layer from the layer stack by its name.
Remove(IUILayer)
Removes the specified UI layer from the layer stack.
Remove(string)
Removes the specified layer from the UILayerStack.