Description
The MaskPositionX
property in the BaseStyles
class represents the mask-position-x
CSS property. This property specifies the horizontal position of a mask image within an element. It is a nullable type, meaning it can hold a value of type Sandbox.UI.Length
or be null
if not set.
Usage
To use the MaskPositionX
property, you can set it to a specific length value to define the horizontal position of the mask image. This can be useful for aligning mask images precisely within an element.
Example
BaseStyles styles = new BaseStyles();
styles.MaskPositionX = new Length(50, LengthUnit.Percent); // Sets the mask position to 50% from the left