SVGStyleElementBuilder class
SVGStyleElementBuilder class
A builder class for constructing an SVG ‘style’ element. This class facilitates the creation and configuration of an SVG style element with CSS rules.
The SVGStyleElementBuilder type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Constructs a new instance of SVGStyleElementBuilder |
Methods
Method | Description |
---|---|
build | Builds the SVG style element with the accumulated CSS rules and adds it to the specified document. |
build | |
add_rule | Adds a CSS rule to the style element. |
add_comment | Adds a comment to the style content. |
type | Sets the ’type’ attribute of the SVG ‘style’ element. This attribute specifies the style sheet language of the element’s contents. |
media | Sets the ‘media’ attribute of the SVG ‘style’ element. This attribute specifies the media for which the styles are intended, allowing the styles to be conditional on the media type. |
title | Sets the ’title’ attribute of the SVG ‘style’ element. This attribute provides an advisory title for the style element, which can be useful for accessibility and tool-tip text. |
build_element | Builds and returns an SVGElement instance based on the current configuration of the builder. |
attribute | Sets or updates an attribute on an SVG element. |
See Also
- module
aspose.svg.builder
- class
ISVGElementBuilder