Class
UILayerStack

Represents the stack of UI layers.

Definition

Namespace:Telerik.Windows.Controls.SyntaxEditor.UI.Layers

Assembly:Telerik.Windows.Controls.SyntaxEditor.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
[SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")]
public class UILayerStack : ICollection<UILayer>, IEnumerable<UILayer>, IEnumerable

Inheritance: objectUILayerStack

Implements: ICollection<UILayer>IEnumerableIEnumerable<UILayer>

Constructors

UILayerStack()

Initializes a new instance of the UILayerStack class.

Declaration

cs-api-definition
public UILayerStack()

Properties

Count

Gets the number of elements contained in the ICollection<T>.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

The count.

Implements ICollection<UILayer>.Count

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

Declaration

cs-api-definition
public bool IsReadOnly { get; }

Property Value

bool

true if this instance is read only; otherwise, false.

Implements ICollection<UILayer>.IsReadOnly

Methods

AddAfter(string, UILayer)

Adds the after.

Declaration

cs-api-definition
public bool AddAfter(string presentedLayerName, UILayer layer)

Parameters

presentedLayerName

string

Name of the presented layer.

layer

UILayer

The layer.

Returns

bool

true if XXXX, false otherwise.

AddBefore(string, UILayer)

Adds the before.

Declaration

cs-api-definition
public bool AddBefore(string presentedLayerName, UILayer layer)

Parameters

presentedLayerName

string

Name of the presented layer.

layer

UILayer

The layer.

Returns

bool

true if XXXX, false otherwise.

AddFirst(UILayer)

Adds the first.

Declaration

cs-api-definition
public void AddFirst(UILayer layer)

Parameters

layer

UILayer

The layer.

AddLast(UILayer)

Adds the last.

Declaration

cs-api-definition
public void AddLast(UILayer layer)

Parameters

layer

UILayer

The layer.

Clear()

Removes all items from the ICollection<T>.

Declaration

cs-api-definition
public void Clear()

Implements ICollection<UILayer>.Clear()

ClearLayersChildren()

Clears the layers children.

Declaration

cs-api-definition
public void ClearLayersChildren()

Contains(UILayer)

Determines whether this instance contains the object.

Declaration

cs-api-definition
public bool Contains(UILayer item)

Parameters

item

UILayer

The layer.

Returns

bool

true if [contains] [the specified layer]; otherwise, false.

Implements ICollection<UILayer>.Contains(UILayer)

Contains(string)

Determines whether this instance contains the object.

Declaration

cs-api-definition
public bool Contains(string layerName)

Parameters

layerName

string

Name of the layer.

Returns

bool

true if [contains] [the specified layer name]; otherwise, false.

CopyTo(UILayer[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

Declaration

cs-api-definition
public void CopyTo(UILayer[] array, int arrayIndex)

Parameters

array

UILayer[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex

int

The zero-based index in array at which copying begins.

Implements ICollection<UILayer>.CopyTo(UILayer[], int)

GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration

cs-api-definition
public IEnumerator<UILayer> GetEnumerator()

Returns

IEnumerator<UILayer>

A IEnumerator<T> that can be used to iterate through the collection.

Implements IEnumerable<UILayer>.GetEnumerator()

GetLayerByName(string)

Gets the name of the layer by.

Declaration

cs-api-definition
public UILayer GetLayerByName(string layerName)

Parameters

layerName

string

Name of the layer.

Returns

UILayer

UILayer.

Remove(UILayer)

Removes the specified layer.

Declaration

cs-api-definition
public bool Remove(UILayer item)

Parameters

item

UILayer

The layer.

Returns

bool

true if XXXX, false otherwise.

Implements ICollection<UILayer>.Remove(UILayer)

Remove(string)

Removes the specified layer name.

Declaration

cs-api-definition
public bool Remove(string layerName)

Parameters

layerName

string

Name of the layer.

Returns

bool

true if XXXX, false otherwise.

UpdateUI()

Updates the UI.

Declaration

cs-api-definition
public void UpdateUI()

UpdateUI(UIUpdateContext)

Updates the UI.

Declaration

cs-api-definition
public void UpdateUI(UIUpdateContext updateContext)

Parameters

updateContext

UIUpdateContext

The update context.