Skip to main content

BlockAdornerCollection Class

Definition​

Assembly:Avalonia.Controls.Documents
Package:Avalonia.Controls.Documents
public class BlockAdornerCollection

Inheritance: object -> BlockAdornerCollection

Implements: IEnumerable<BlockAdorner>, IReadOnlyCollection<BlockAdorner>, IReadOnlyList<BlockAdorner>, IEnumerable

Remarks​

Enumeration and the indexer walk the adorners in render order, lowest Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner.ZIndex first, with lazy sorting and change-event relay. The owning Avalonia.Controls.Documents.Primitives.Adorners.BlockAdornerLayer handles node iteration, filtering, and dispatch.

Constructors​

NameDescription
BlockAdornerCollectionNo summary available.

BlockAdornerCollection Constructor​

public BlockAdornerCollection()

Methods​

NameDescription
AddAdds an adorner and subscribes to its change notifications.
ClearRemoves all adorners.
GetEnumeratorReturns an enumerator that walks the adorners in render order.
RemoveRemoves an adorner and unsubscribes from its change notifications.

Add Method​

Adds an adorner and subscribes to its change notifications.

public void Add(Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner adorner)

Parameters​

adorner Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner

Clear Method​

Removes all adorners.

public void Clear()

GetEnumerator Method​

Returns an enumerator that walks the adorners in render order.

public System.Collections.Generic.IEnumerator<Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner> GetEnumerator()

Returns​

System.Collections.Generic.IEnumerator<Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner>

Remove Method​

Removes an adorner and unsubscribes from its change notifications.

public bool Remove(Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner adorner)

Parameters​

adorner Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner

Returns​

bool

Properties​

NameDescription
CountGets the number of registered adorners.
ItemNo summary available.

Count Property​

Gets the number of registered adorners.

public int Count { get; set; }

Item Property​

public Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner Item { get; set; }

Events​

NameDescription
ChangedRaised when any contained adorner signals a visual change or the collection itself is modified.

Changed Event​

Raised when any contained adorner signals a visual change or the collection itself is modified.

public event EventHandler Changed