Class UILayerStack
Represents the stack of UI layers.
Inheritance
Namespace: Telerik.Windows.Controls.SyntaxEditor.UI.Layers
Assembly: Telerik.Windows.Controls.SyntaxEditor.dll
Syntax
public class UILayerStack : Object, ICollection<UILayer>, IEnumerable<UILayer>, IEnumerable
Constructors
UILayerStack()
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection<>.
Declaration
public int Count { get; }
Property Value
System.Int32
The count. |
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection<> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
System.Boolean
|
Methods
AddAfter(String, UILayer)
Adds the after.
Declaration
public bool AddAfter(string presentedLayerName, UILayer layer)
Parameters
System.String
presentedLayerName
Name of the presented layer. |
UILayer
layer
The layer. |
Returns
System.Boolean
|
AddBefore(String, UILayer)
Adds the before.
Declaration
public bool AddBefore(string presentedLayerName, UILayer layer)
Parameters
System.String
presentedLayerName
Name of the presented layer. |
UILayer
layer
The layer. |
Returns
System.Boolean
|
AddFirst(UILayer)
AddLast(UILayer)
Clear()
Removes all items from the System.Collections.Generic.ICollection<>.
Declaration
public void Clear()
ClearLayersChildren()
Clears the layers children.
Declaration
public void ClearLayersChildren()
Contains(String)
Determines whether this instance contains the object.
Declaration
public bool Contains(string layerName)
Parameters
System.String
layerName
Name of the layer. |
Returns
System.Boolean
|
Contains(UILayer)
Determines whether this instance contains the object.
Declaration
public bool Contains(UILayer item)
Parameters
UILayer
item
The layer. |
Returns
System.Boolean
|
CopyTo(UILayer[], Int32)
Copies the elements of the System.Collections.Generic.ICollection<> to an System.Array, starting at a particular System.Array index.
Declaration
public void CopyTo(UILayer[] array, int arrayIndex)
Parameters
UILayer[]
array
The one-dimensional System.Array that is the destination of the elements copied from System.Collections.Generic.ICollection<>. The System.Array must have zero-based indexing. |
System.Int32
arrayIndex
The zero-based index in |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<UILayer> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<UILayer>
A System.Collections.Generic.IEnumerator<> that can be used to iterate through the collection. |
GetLayerByName(String)
Gets the name of the layer by.
Declaration
public UILayer GetLayerByName(string layerName)
Parameters
System.String
layerName
Name of the layer. |
Returns
UILayer
UILayer. |
Remove(String)
Removes the specified layer name.
Declaration
public bool Remove(string layerName)
Parameters
System.String
layerName
Name of the layer. |
Returns
System.Boolean
|
Remove(UILayer)
Removes the specified layer.
Declaration
public bool Remove(UILayer item)
Parameters
UILayer
item
The layer. |
Returns
System.Boolean
|
UpdateUI()
Updates the UI.
Declaration
public void UpdateUI()
UpdateUI(UIUpdateContext)
Updates the UI.
Declaration
public void UpdateUI(UIUpdateContext updateContext)
Parameters
UIUpdateContext
updateContext
The update context. |