PseudolassesExtensionsSet Method
Adds or removes a pseudoclass depending on a boolean value.
Namespace: Avalonia.ControlsAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public static void Set(
this IPseudoClasses classes,
string name,
bool value
)
<ExtensionAttribute>
Public Shared Sub Set (
classes As IPseudoClasses,
name As String,
value As Boolean
)
[<ExtensionAttribute>]
static member Set :
classes : IPseudoClasses *
name : string *
value : bool -> unit
- 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.
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).