Skip to main content

Insert Method

Inserts a style class into the collection.

Definition

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

public override void Insert(
int index,
string name
)

Parameters

  Int32
The index to insert the class at.
  String
The class name.

Implements

IList(T).Insert(Int32, T)

Remarks

Only standard classes may be added via this method. To add pseudoclasses (classes beginning with a ':' character) use the protected PseudoClasses property.

See Also

Reference

Classes Class
Avalonia.Controls Namespace