Description
The MaskAngle
property in the BaseStyles
class represents the mask-angle
CSS property. This property is used to define the angle of a mask image applied to an element. It is a nullable property of type Sandbox.UI.Length
, allowing you to specify the angle in various units such as degrees, radians, or turns.
Usage
To use the MaskAngle
property, you can set it to a specific angle value using the Sandbox.UI.Length
type. This can be useful for creating dynamic and visually appealing UI elements by rotating mask images applied to them.
Example
// Example of setting the MaskAngle property
var styles = new BaseStyles();
styles.MaskAngle = new Length(45, LengthUnit.Degrees); // Sets the mask angle to 45 degrees
// Example of clearing the MaskAngle property
styles.MaskAngle = null; // Removes the mask angle, reverting to default behavior