IAvaloniaList<T> Interface

Summary

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

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.