Skip to main content

Set Method

Adds or removes a pseudoclass depending on a boolean value.

Definition​

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

public static void Set(
this IPseudoClasses classes,
string name,
bool value
)

Parameters​

  IPseudoClasses
The pseudoclasses collection.
  String
The name of the pseudoclass to set.
  Boolean
True to add the pseudoclass or false to remove.

Usage Note​

In Visual Basic and C#, you can call this method as an instance method on any object of type IPseudoClasses. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also​

Reference​

PseudolassesExtensions Class
Avalonia.Controls Namespace