PseudolassesExtensionsSet Method

Adds or removes a pseudoclass depending on a boolean value.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static void Set(
	this IPseudoClasses classes,
	string name,
	bool value
)

Parameters

classes  IPseudoClasses
The pseudoclasses collection.
name  String
The name of the pseudoclass to set.
value  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