IAvaloniaList<T> Interface

Summary

A notifying list.
graph BT Type-.->Interface0["IList<T>"] Type-.->Interface1["ICollection<T>"] Type-.->Interface2["IAvaloniaReadOnlyList<T>"] Type-.->Interface3["IReadOnlyList<T>"] Type-.->Interface4["IReadOnlyCollection<T>"] Type-.->Interface5["IEnumerable<T>"] Type-.->Interface6["IEnumerable"] Type-.->Interface7["INotifyCollectionChanged"] Type-.->Interface8["INotifyPropertyChanged"] Type["IAvaloniaList<T>"] class Type type-node Implementing0["Styles"]-.->Type click Implementing0 "/api/Avalonia.Styling/Styles" Implementing1["TextDecorationCollection"]-.->Type click Implementing1 "/api/Avalonia.Media/TextDecorationCollection" Implementing2["UInt64Animator"]-.->Type click Implementing2 "/api/Avalonia.Animation.Animators/UInt64Animator" Implementing3["ColumnDefinitions"]-.->Type click Implementing3 "/api/Avalonia.Controls/ColumnDefinitions" Implementing4["CornerRadiusAnimator"]-.->Type click Implementing4 "/api/Avalonia.Animation.Animators/CornerRadiusAnimator" Implementing5["BoolAnimator"]-.->Type click Implementing5 "/api/Avalonia.Animation.Animators/BoolAnimator" Implementing6["Transforms"]-.->Type click Implementing6 "/api/Avalonia.Media/Transforms" Implementing7["KeyFrames"]-.->Type click Implementing7 "/api/Avalonia.Animation/KeyFrames" Implementing8["DoubleAnimator"]-.->Type click Implementing8 "/api/Avalonia.Animation.Animators/DoubleAnimator" Implementing9["DataGridSortDescriptionCollection"]-.->Type click Implementing9 "/api/Avalonia.Collections/DataGridSortDescriptionCollection" Implementing10["Animator<T>"]-.->Type click Implementing10 "/api/Avalonia.Animation.Animators/Animator_1" Implementing11["BaseBrushAnimator"]-.->Type click Implementing11 "/api/Avalonia.Animation.Animators/BaseBrushAnimator" Implementing12["DefaultTheme"]-.->Type click Implementing12 "/api/Avalonia.Themes.Default/DefaultTheme" Implementing13["RectAnimator"]-.->Type click Implementing13 "/api/Avalonia.Animation.Animators/RectAnimator" Implementing14["VectorAnimator"]-.->Type click Implementing14 "/api/Avalonia.Animation.Animators/VectorAnimator" Implementing15["ThicknessAnimator"]-.->Type click Implementing15 "/api/Avalonia.Animation.Animators/ThicknessAnimator" Implementing16["UInt16Animator"]-.->Type click Implementing16 "/api/Avalonia.Animation.Animators/UInt16Animator" Implementing17["TransformAnimator"]-.->Type click Implementing17 "/api/Avalonia.Animation.Animators/TransformAnimator" Implementing18["DecimalAnimator"]-.->Type click Implementing18 "/api/Avalonia.Animation.Animators/DecimalAnimator" Implementing19["RowDefinitions"]-.->Type click Implementing19 "/api/Avalonia.Controls/RowDefinitions" Implementing20["DefinitionList<T>"]-.->Type click Implementing20 "/api/Avalonia.Controls/DefinitionList_1" Implementing21["ColorAnimator"]-.->Type click Implementing21 "/api/Avalonia.Animation.Animators/ColorAnimator" Implementing22["BoxShadowsAnimator"]-.->Type click Implementing22 "/api/Avalonia.Animation.Animators/BoxShadowsAnimator" Implementing23["ByteAnimator"]-.->Type click Implementing23 "/api/Avalonia.Animation.Animators/ByteAnimator" Implementing24["Classes"]-.->Type click Implementing24 "/api/Avalonia.Controls/Classes" Implementing25["Points"]-.->Type click Implementing25 "/api/Avalonia/Points" Implementing26["GradientStops"]-.->Type click Implementing26 "/api/Avalonia.Media/GradientStops" Implementing27["Transitions"]-.->Type click Implementing27 "/api/Avalonia.Animation/Transitions" Implementing28["FloatAnimator"]-.->Type click Implementing28 "/api/Avalonia.Animation.Animators/FloatAnimator" Implementing29["AvaloniaList<T>"]-.->Type click Implementing29 "/api/Avalonia.Collections/AvaloniaList_1" Implementing30["BoxShadowAnimator"]-.->Type click Implementing30 "/api/Avalonia.Animation.Animators/BoxShadowAnimator" Implementing31["SizeAnimator"]-.->Type click Implementing31 "/api/Avalonia.Animation.Animators/SizeAnimator" Implementing32["SolidColorBrushAnimator"]-.->Type click Implementing32 "/api/Avalonia.Animation.Animators/SolidColorBrushAnimator" Implementing33["FluentControls"]-.->Type click Implementing33 "/api/Avalonia.Themes.Fluent.Controls/FluentControls" Implementing34["PointAnimator"]-.->Type click Implementing34 "/api/Avalonia.Animation.Animators/PointAnimator" Implementing35["Int32Animator"]-.->Type click Implementing35 "/api/Avalonia.Animation.Animators/Int32Animator" Implementing36["Int64Animator"]-.->Type click Implementing36 "/api/Avalonia.Animation.Animators/Int64Animator" Implementing37["PathSegments"]-.->Type click Implementing37 "/api/Avalonia.Media/PathSegments" Implementing38["TransformOperationsAnimator"]-.->Type click Implementing38 "/api/Avalonia.Animation.Animators/TransformOperationsAnimator" Implementing39["DataTemplates"]-.->Type click Implementing39 "/api/Avalonia.Controls.Templates/DataTemplates" Implementing40["Int16Animator"]-.->Type click Implementing40 "/api/Avalonia.Animation.Animators/Int16Animator" Implementing41["ISolidColorBrushAnimator"]-.->Type click Implementing41 "/api/Avalonia.Animation.Animators/ISolidColorBrushAnimator" Implementing42["UInt32Animator"]-.->Type click Implementing42 "/api/Avalonia.Animation.Animators/UInt32Animator" Implementing43["Controls"]-.->Type click Implementing43 "/api/Avalonia.Controls/Controls" Implementing44["PathFigures"]-.->Type click Implementing44 "/api/Avalonia.Media/PathFigures"

Syntax

public interface IAvaloniaList<T> : IList<T>, ICollection<T>, IAvaloniaReadOnlyList<T>, 
    IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, 
    INotifyCollectionChanged, INotifyPropertyChanged

Type Parameters

Name Description
T The type of the items in the list.

Properties

Name Value Summary
Count int
Gets the number of items in the list.
this[int] T
Gets or sets the element at the specified index.

Methods

Name Value Summary
AddRange(IEnumerable<T>) void
Adds multiple items to the collection.
InsertRange(int, IEnumerable<T>) void
Inserts multiple items at the specified index.
Move(int, int) void
Moves an item to a new index.
MoveRange(int, int, int) void
Moves multiple items to a new index.
RemoveAll(IEnumerable<T>) void
Removes multiple items from the collection.
RemoveRange(int, int) void
Removes a range of elements from the collection.

Extension Methods

Name Value Summary
CreateDerivedList<T, TDerived>(Func<T, TDerived>) IAvaloniaReadOnlyList<TDerived>
ForEachItem<T>(Action<int, T>, Action<int, T>, Action, bool) IDisposable
Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
ForEachItem<T>(Action<T>, Action<T>, Action, bool) IDisposable
Invokes an action for each item in a collection and subsequently each item added or removed from the collection.
TrackItemPropertyChanged<T>(Action<Tuple<object, PropertyChangedEventArgs>>) IDisposable
Listens for property changed events from all items in a collection.