Classes.

Add(string) Method

Summary

Adds a style class to the collection.
Namespace
Avalonia.Controls
Containing Type
Classes

Syntax

public override void Add(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
name string The class name.

Return Value

Type Description
void