bool IncludeLabel { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IncludeLabel property of the ControlWidget class determines whether a label is displayed next to the control in the editor interface. By default, this property is set to true, meaning that a label will be included. This can be useful for providing context or descriptions for the control, enhancing the user interface's clarity and usability.

Usage

To use the IncludeLabel property, you can access it directly from an instance of a class that derives from ControlWidget. You can set it to true or false depending on whether you want the label to be displayed next to the control.

Example usage:

var myControlWidget = new MyControlWidget();
myControlWidget.IncludeLabel = false; // This will hide the label next to the control

Example

// Example of setting the IncludeLabel property

// Assume MyControlWidget is a class derived from ControlWidget
var myControlWidget = new MyControlWidget();

// Set IncludeLabel to false to hide the label
myControlWidget.IncludeLabel = false;

// Set IncludeLabel to true to show the label
myControlWidget.IncludeLabel = true;