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

robot_2Generated
code_blocksInput

Description

The MaxHeight property in the BaseStyles class represents the max-height CSS property. It is used to define the maximum height of an element. This property can be set to a specific length value or percentage, and it is nullable, meaning it can also be set to null to indicate that there is no maximum height constraint.

Usage

To use the MaxHeight property, you can assign it a value of type Sandbox.UI.Length, which can represent various units such as pixels, percentages, etc. If you want to remove any maximum height constraint, you can set it to null.

Example

// Example of setting the MaxHeight property
var styles = new BaseStyles();
styles.MaxHeight = new Length(100, LengthUnit.Pixel); // Set max-height to 100px

// Example of removing the max-height constraint
styles.MaxHeight = null;