UILayerStack
Stores UI layers in display order and provides lookup and insertion by layer name.
Definition
Namespace:Telerik.WinForms.Documents.UI.Layers
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class UILayerStack : IEnumerable
Inheritance: objectUILayerStack
Implements:
Constructors
Initializes an empty layer stack.
public UILayerStack()
Properties
Gets whether the stack can be modified; this collection is writable.
public bool IsReadOnly { get; }
Methods
Inserts a layer immediately after the named layer.
public bool AddAfter(string presentedLayerName, IUILayer layer)
The name of the existing layer that should precede the new layer.
layerIUILayerThe layer to insert.
Returns:true if the named layer exists and the new layer was inserted; otherwise, false.
Exceptions: InvalidOperationExceptionA layer with the same name is already registered.
Inserts a layer immediately before the named layer.
public bool AddBefore(string presentedLayerName, IUILayer layer)
The name of the existing layer that should follow the new layer.
layerIUILayerThe layer to insert.
Returns:true if the named layer exists and the new layer was inserted; otherwise, false.
Exceptions: InvalidOperationExceptionA layer with the same name is already registered.
Inserts a layer at the beginning of the display order.
public void AddFirst(IUILayer layer)
The layer to insert.
Exceptions: InvalidOperationExceptionA layer with the same name is already registered.
Inserts a layer at the end of the display order.
public void AddLast(IUILayer layer)
The layer to insert.
Exceptions: InvalidOperationExceptionA layer with the same name is already registered.
Removes all layers from the stack.
public void Clear()
Returns an enumerator that visits layers in display order.
public IEnumerator<IUILayer> GetEnumerator()
IEnumerator<IUILayer>
An enumerator over the layers.