Skip to main content

Add Method

Adds an item to the ICollection(T).

Definition​

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

public void Add(
IStyle item
)

Parameters​

  IStyle
The object to add to the ICollection(T).

Implements​

ICollection(T).Add(T)

Exceptions​

NotSupportedExceptionThe ICollection(T) is read-only.

See Also​

Reference​

Styles Class
Avalonia.Styling Namespace