Classes.

Insert(int, string) Method

Summary

Inserts a style class into the collection.
Namespace
Avalonia.Controls
Containing Type
Classes

Syntax

public override void Insert(int index, string name)

Remarks

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

Parameters

Name Type Description
index int The index to insert the class at.
name string The class name.

Return Value

Type Description
void