The MaskScope
property in the BaseStyles
class represents the mask-scope
CSS property. This property is used to define the scope of a mask, determining which elements are affected by the mask.
The MaskScope
property in the BaseStyles
class represents the mask-scope
CSS property. This property is used to define the scope of a mask, determining which elements are affected by the mask.
To use the MaskScope
property, you can set it to a value of type MaskScope
from the Sandbox.UI
namespace. This property is nullable, meaning it can be set to null
if no mask scope is desired.
BaseStyles styles = new BaseStyles(); styles.MaskScope = MaskScope.All; // Sets the mask scope to affect all elements styles.MaskScope = null; // Removes any mask scope, effectively disabling it