Description
The Right
property in the Sandbox.UI.BaseStyles
class represents the right
CSS property. This property is used to specify the right position of an element in a CSS layout. It is typically used in conjunction with the position
property to define the offset of an element from the right edge of its containing element.
Usage
To use the Right
property, you can assign it a value of type Sandbox.UI.Length
, which can be a specific length value (e.g., pixels, ems) or a percentage. The property is nullable, meaning it can be set to null
to indicate that the right position is not explicitly defined.
Example
// Example of setting the Right property
var styles = new BaseStyles();
styles.Right = new Length(20, LengthUnit.Pixel); // Set the right position to 20 pixels
// Example of clearing the Right property
styles.Right = null; // Remove the right position setting