---
title: "SVGMaskElementBuilder class"
url: "https://reference.aspose.com/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/"
product: "Aspose.SVG for Python via .NET API References"
---


## SVGMaskElementBuilder class

Builder class for constructing an SVG 'mask' element, which is used to define an alpha mask for compositing the current object into the background.
This class enables the building of content within the 'mask' element and provides methods to set various attributes specific to the 'mask' element in SVG.



The SVGMaskElementBuilder type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/__init__/#) | Constructs a new instance of SVGMaskElementBuilder |


### Methods
| Method | Description |
| :- | :- |
| [build](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/build/#aspose.svg.dom.Document) |  |
| [build](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/build/#aspose.svg.SVGMaskElement) |  |
| [mask_units](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/mask_units/#aspose.svg.builder.CoordinateUnits) | Sets the 'maskUnits' attribute of the SVG 'mask' element, specifying the coordinate system for the mask's attributes. |
| [mask_content_units](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/mask_content_units/#aspose.svg.builder.CoordinateUnits) | Sets the 'maskContentUnits' attribute of the SVG 'mask' element, specifying the coordinate system for the contents of the mask. |
| [build_element](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/build_element/#aspose.svg.dom.Document) | Builds and returns an SVGElement instance based on the current configuration of the builder. |
| [attribute](/svg/python-net/aspose.svg.builder/svgmaskelementbuilder/attribute/#str-str) | Sets or updates an attribute on an SVG element. |



### See Also
* module [`aspose.svg.builder`](..)
* class [`ISVGElementBuilder`](/svg/python-net/aspose.svg.builder/isvgelementbuilder)
