SVGAElementBuilder class
SVGAElementBuilder class
Builder class for constructing an SVG ‘a’ element, which is used to define hyperlinks. It enables the building of content within ‘a’ element and provides methods to set various attributes specific to the ‘a’ element in SVG.
The SVGAElementBuilder type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Constructs a new instance of SVGAElementBuilder |
Methods
Method | Description |
---|---|
build | |
build | |
set_target | Sets the ’target’ attribute of the SVG ‘a’ element to a custom XML name. |
href | Sets the ‘href’ attribute of the SVG ‘a’ element, specifying the URL of the linked resource. |
download | Sets the ‘download’ attribute of the SVG ‘a’ element, indicating that the link is to be downloaded when activated. |
ping | Sets the ‘ping’ attribute of the SVG ‘a’ element, containing a list of URLs to be notified if the link is followed. |
rel | Sets the ‘rel’ attribute of the SVG ‘a’ element, specifying the relationship of the target object to the link object. |
href_lang | Sets the ‘hreflang’ attribute of the SVG ‘a’ element, indicating the language of the linked resource. |
type | Sets the ’type’ attribute of the SVG ‘a’ element, specifying the media type of the linked resource. |
referrer_policy | Sets the ‘referrerPolicy’ attribute of the SVG ‘a’ element, specifying how much of the referrer to send along with requests. |
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