Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Definition
Namespace: Microsoft.CommandPalette.Extensions
The OptionalColor struct represents an optional color value that can be used in the Command Palette. It is designed to encapsulate a color value along with a flag indicating whether the value is present or not. This is useful for scenarios where a color may or may not be specified, allowing for more flexible and dynamic UI designs.
Fields
| Field | Type | Description |
|---|---|---|
| Color | Microsoft.CommandPalette.Extensions.Color | The color value. This field is used to store the actual color when it is specified. |
| HasValue | Boolean | Indicates whether the color value is present or not. |
Windows developer