Skip to main content

Insert Method

Inserts an item to the IList(T) at the specified index.

Definition

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public void Insert(
int index,
IStyle item
)

Parameters

  Int32
The zero-based index at which item should be inserted.
  IStyle
The object to insert into the IList(T).

Implements

IList(T).Insert(Int32, T)

Exceptions

ArgumentOutOfRangeExceptionindex is not a valid index in the IList(T).
NotSupportedExceptionThe IList(T) is read-only.

See Also

Reference

Styles Class
Avalonia.Styling Namespace