string Label { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Label property of the ToggleGroupAttribute class is a string that represents the label associated with the toggle group. This label is used to identify the group in the user interface, allowing users to understand the purpose of the toggle group.

Usage

To use the Label property, you need to create an instance of the ToggleGroupAttribute and set the Label property to a descriptive string. This string will be displayed in the UI to help users identify the toggle group.

Example

// Example of using ToggleGroupAttribute with a Label
[ToggleGroup("MyToggleGroup", Label = "Enable Features")]
public bool EnableFeatures;

// In this example, the toggle group is labeled "Enable Features" in the UI.