Set Method
Adds or removes a pseudoclass depending on a boolean value.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
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
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).