BlockAdornerCollection Class
Definition
Manages a Z-ordered set of Avalonia.Controls.Documents.Primitives.Adorners.BlockAdorner instances.
public class BlockAdornerCollection
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
| Name | Description |
|---|---|
| BlockAdornerCollection | No summary available. |
BlockAdornerCollection Constructor
public BlockAdornerCollection()
Methods
| Name | Description |
|---|---|
| Add | Adds an adorner and subscribes to its change notifications. |
| Clear | Removes all adorners. |
| GetEnumerator | Returns an enumerator that walks the adorners in render order. |
| Remove | Removes 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
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
| Name | Description |
|---|---|
| Changed | Raised 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