SVGScriptElementBuilder Class
Contents
[
Hide
]SVGScriptElementBuilder class
Builder class for constructing an SVG ‘script’ element. The ‘script’ element is used to embed or reference executable scripts within SVG documents. This class provides methods to set various attributes specific to the ‘script’ element, such as type, source, and cross-origin settings.
public class SVGScriptElementBuilder : SVGElementBuilder<SVGScriptElement>, ICoreAttributeSetter,
IDocumentElementEventAttributeSetter, IGlobalEventAttributeSetter
Constructors
| Name | Description |
|---|---|
| SVGScriptElementBuilder() | The default constructor. |
Properties
| Name | Description |
|---|---|
| Configurations { get; } |
Methods
| Name | Description |
|---|---|
| Attribute(string, string) | |
| virtual Build(Document) | |
| virtual Build(SVGScriptElement) | |
| BuildElement(Document) | |
| Crossorigin(string) | Sets the ‘crossorigin’ attribute of the SVG ‘script’ element, specifying the CORS settings for the external script. |
| Href(string) | Sets the ‘href’ attribute of the SVG ‘script’ element, specifying the URL of an external script file. |
| Type(string) | Sets the ’type’ attribute of the SVG ‘script’ element, specifying the scripting language type (e.g., “text/javascript”). |
See Also
- class SVGElementBuilder<T>
- class SVGScriptElement
- interface ICoreAttributeSetter
- interface IDocumentElementEventAttributeSetter
- interface IGlobalEventAttributeSetter
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG