MaskBuilder Class

MaskBuilder class

A builder class for creating CSS mask properties. This class allows for the construction of complex mask styles using various properties such as mask source, position, size, repeat style, and more. The resulting string can be used in CSS to define the masking behavior of an element.

public class MaskBuilder

Constructors

NameDescription
MaskBuilder()The default constructor.

Methods

NameDescription
BackgroundSize(double, double, LengthType)Sets the background size for the mask.
Build()Builds the mask property value as a string.
CompositingOperator(CompositingOperator)Sets the compositing operator for the mask.
GeometryBox(GeometryBox)Sets the geometry box of the mask.
GeometryBoxNoclip(GeometryBox)Sets the geometry box of the mask with no clipping.
MaskSourceId(string)Sets the mask source ID for the mask.
Position(double, LengthType)Sets the position of the mask.
Position(HorizontalPosition, VerticalPosition)Sets the position of the mask using predefined horizontal and vertical positions.
Position(double, double, LengthType)Sets the position of the mask using horizontal and vertical values.
Position(HorizontalPosition, double, LengthType)Sets the position of the mask using a predefined horizontal position and a vertical value.
Position(VerticalPosition, double, LengthType)Sets the position of the mask using a predefined vertical position and a horizontal value.
Position(HorizontalEdge, double, VerticalEdge, double, LengthType)Sets the position of the mask using edges and values.
RepeatStyle(RepeatStyle)Sets the repeat style of the mask.

See Also