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.
public class SVGAElementBuilder : SVGElementBuilder<SVGAElement>, ICompositeAttributeSetter,
ICompositeElementBuilder
Constructors
Properties
Methods
Name | Description |
---|
Attribute(string, string) | |
virtual Build(Document) | |
virtual Build(SVGAElement) | |
BuildElement(Document) | |
Download(string) | Sets the ‘download’ attribute of the SVG ‘a’ element, indicating that the link is to be downloaded when activated. |
Href(string) | Sets the ‘href’ attribute of the SVG ‘a’ element, specifying the URL of the linked resource. |
HrefLang(string) | Sets the ‘hreflang’ attribute of the SVG ‘a’ element, indicating the language of the linked resource. |
Ping(string) | Sets the ‘ping’ attribute of the SVG ‘a’ element, containing a list of URLs to be notified if the link is followed. |
ReferrerPolicy(ReferrerPolicy) | Sets the ‘referrerPolicy’ attribute of the SVG ‘a’ element, specifying how much of the referrer to send along with requests. |
Rel(string) | Sets the ‘rel’ attribute of the SVG ‘a’ element, specifying the relationship of the target object to the link object. |
SetTarget(string) | Sets the ’target’ attribute of the SVG ‘a’ element to a custom XML name. |
Type(string) | Sets the ’type’ attribute of the SVG ‘a’ element, specifying the media type of the linked resource. |
See Also