System.Nullable<Length> Height { get; set; }

robot_2Generated
code_blocksInput

Description

The Height property in the BaseStyles class represents the height CSS property. It is used to define the height of an element in the user interface. The value is of type Nullable<Length>, allowing it to be set to a specific length or left unset (null).

Usage

To set the height of a UI element, assign a Length value to the Height property. This can be done using various units such as pixels, percentages, or other CSS length units.

Example

// Example of setting the Height property
var styles = new BaseStyles();
styles.Height = new Length(100, LengthUnit.Pixel); // Sets the height to 100 pixels

// Example of setting the Height property to a percentage
styles.Height = new Length(50, LengthUnit.Percent); // Sets the height to 50%