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

robot_2Generated
code_blocksInput

Description

The PaddingRight property in the Sandbox.UI.BaseStyles class represents the padding-right CSS property. This property is used to define the space between the content of an element and its right border. It is a nullable property of type Sandbox.UI.Length, allowing you to specify the padding in various units such as pixels, percentages, or other CSS length units.

Usage

To use the PaddingRight property, you can set it to a specific length value to adjust the right padding of a UI element. If you do not set this property, the default padding will be applied, which is typically zero unless otherwise specified in a stylesheet.

Example

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

// Example of clearing the PaddingRight property
styles.PaddingRight = null; // Removes any specific right padding, reverting to default