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

robot_2Generated
code_blocksInput

Description

The PaddingTop property in the BaseStyles class represents the padding-top CSS property. It is used to specify the amount of space to be inserted between the top border of an element and its content. This property is of type System.Nullable<Sandbox.UI.Length>, allowing you to set it to a specific length value or leave it unset (null).

Usage

To use the PaddingTop property, you can assign it a value of type Sandbox.UI.Length. This can be a specific unit like pixels (px), percentage (%), or any other valid CSS length unit. If you do not want to set a padding, you can leave it as null.

Example

// Example of setting the PaddingTop property
var styles = new BaseStyles();
styles.PaddingTop = new Length(10, LengthUnit.Pixel); // Sets the padding-top to 10 pixels

// Example of leaving the PaddingTop property unset
styles.PaddingTop = null; // No padding-top is applied