Description
The Left
property in the BaseStyles
class represents the left
CSS property. It is used to specify the left position of an element in a UI layout, typically in relation to its containing element. This property can be set using various units such as pixels, percentages, or other CSS length units.
Usage
To set the Left
property, assign it a value of type Sandbox.UI.Length
. This value can be null
if you want to remove the left positioning.
Example
BaseStyles styles = new BaseStyles();
styles.Left = new Length(10, LengthUnit.Pixel); // Sets the left position to 10 pixels
styles.Left = null; // Removes the left positioning