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["ByteAnimator"]-.->Type click Implementing0 "/api/Avalonia.Animation.Animators/ByteAnimator" Implementing1["Styles"]-.->Type click Implementing1 "/api/Avalonia.Styling/Styles" Implementing2["PathSegments"]-.->Type click Implementing2 "/api/Avalonia.Media/PathSegments" Implementing3["DecimalAnimator"]-.->Type click Implementing3 "/api/Avalonia.Animation.Animators/DecimalAnimator" Implementing4["DoubleAnimator"]-.->Type click Implementing4 "/api/Avalonia.Animation.Animators/DoubleAnimator" Implementing5["DataTemplates"]-.->Type click Implementing5 "/api/Avalonia.Controls.Templates/DataTemplates" Implementing6["SolidColorBrushAnimator"]-.->Type click Implementing6 "/api/Avalonia.Animation.Animators/SolidColorBrushAnimator" Implementing7["ColorAnimator"]-.->Type click Implementing7 "/api/Avalonia.Animation.Animators/ColorAnimator" Implementing8["DataGridSortDescriptionCollection"]-.->Type click Implementing8 "/api/Avalonia.Collections/DataGridSortDescriptionCollection" Implementing9["AvaloniaList<T>"]-.->Type click Implementing9 "/api/Avalonia.Collections/AvaloniaList_1" Implementing10["Points"]-.->Type click Implementing10 "/api/Avalonia/Points" Implementing11["BoolAnimator"]-.->Type click Implementing11 "/api/Avalonia.Animation.Animators/BoolAnimator" Implementing12["ThicknessAnimator"]-.->Type click Implementing12 "/api/Avalonia.Animation.Animators/ThicknessAnimator" Implementing13["UInt32Animator"]-.->Type click Implementing13 "/api/Avalonia.Animation.Animators/UInt32Animator" Implementing14["Int32Animator"]-.->Type click Implementing14 "/api/Avalonia.Animation.Animators/Int32Animator" Implementing15["DefinitionList<T>"]-.->Type click Implementing15 "/api/Avalonia.Controls/DefinitionList_1" Implementing16["VectorAnimator"]-.->Type click Implementing16 "/api/Avalonia.Animation.Animators/VectorAnimator" Implementing17["Transforms"]-.->Type click Implementing17 "/api/Avalonia.Media/Transforms" Implementing18["FloatAnimator"]-.->Type click Implementing18 "/api/Avalonia.Animation.Animators/FloatAnimator" Implementing19["UInt16Animator"]-.->Type click Implementing19 "/api/Avalonia.Animation.Animators/UInt16Animator" Implementing20["Transitions"]-.->Type click Implementing20 "/api/Avalonia.Animation/Transitions" Implementing21["PointAnimator"]-.->Type click Implementing21 "/api/Avalonia.Animation.Animators/PointAnimator" Implementing22["PathFigures"]-.->Type click Implementing22 "/api/Avalonia.Media/PathFigures" Implementing23["TransformAnimator"]-.->Type click Implementing23 "/api/Avalonia.Animation.Animators/TransformAnimator" Implementing24["ColumnDefinitions"]-.->Type click Implementing24 "/api/Avalonia.Controls/ColumnDefinitions" Implementing25["Classes"]-.->Type click Implementing25 "/api/Avalonia.Controls/Classes" Implementing26["KeyFrames"]-.->Type click Implementing26 "/api/Avalonia.Animation/KeyFrames" Implementing27["RowDefinitions"]-.->Type click Implementing27 "/api/Avalonia.Controls/RowDefinitions" Implementing28["RectAnimator"]-.->Type click Implementing28 "/api/Avalonia.Animation.Animators/RectAnimator" Implementing29["DefaultTheme"]-.->Type click Implementing29 "/api/Avalonia.Themes.Default/DefaultTheme" Implementing30["GradientStops"]-.->Type click Implementing30 "/api/Avalonia.Media/GradientStops" Implementing31["UInt64Animator"]-.->Type click Implementing31 "/api/Avalonia.Animation.Animators/UInt64Animator" Implementing32["Int16Animator"]-.->Type click Implementing32 "/api/Avalonia.Animation.Animators/Int16Animator" Implementing33["SizeAnimator"]-.->Type click Implementing33 "/api/Avalonia.Animation.Animators/SizeAnimator" Implementing34["Controls"]-.->Type click Implementing34 "/api/Avalonia.Controls/Controls" Implementing35["Animator<T>"]-.->Type click Implementing35 "/api/Avalonia.Animation.Animators/Animator_1" Implementing36["Int64Animator"]-.->Type click Implementing36 "/api/Avalonia.Animation.Animators/Int64Animator" Implementing37["CornerRadiusAnimator"]-.->Type click Implementing37 "/api/Avalonia.Animation.Animators/CornerRadiusAnimator"

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.