Class SVGElementBuilder
Namespace: Aspose.Svg.Builder
Assembly: Aspose.SVG.dll (25.5.0)
Represents a base class for building SVG elements of type T
.
[ComVisible(true)]
public abstract class SVGElementBuilder<t> : ISVGElementBuilder, IAttributeSetter where T : SVGElement
Type Parameters
T
The type of SVG element this builder is responsible for creating.
Inheritance
Implements
ISVGElementBuilder , IAttributeSetter
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Extension Methods
SVGBuilderExtensions.AddBuilder<svgelementbuilder<t>, TElementBuilder>(SVGElementBuilder<t>, TElementBuilder) , SVGBuilderExtensions.SetAttribute<svgelementbuilder<t>>(SVGElementBuilder<t>, string, string)
Constructors
SVGElementBuilder()
protected SVGElementBuilder()
Properties
Configurations
Gets the list of configurations to be applied to the SVG element.
public List<action<svgelement>> Configurations { get; }
Property Value
List < Action < SVGElement >>
Methods
Attribute(string, string)
Adds an attribute configuration to the SVG element.
public void Attribute(string name, string value)
Parameters
name
string
The name of the attribute.
value
string
The value of the attribute.
Build(Document)
Builds the SVG element and applies all configurations to it.
public virtual T Build(Document document)
Parameters
document
Document
The document to which the element will be added.
Returns
T
The constructed and configured SVG element of type T
.
Build(T)
Applies configurations to an existing SVG element.
public virtual T Build(T element)
Parameters
element
T
The SVG element to configure.
Returns
T
The configured SVG element of type T
.
BuildElement(Document)
Builds the SVG element as a generic SVGElement.
public SVGElement BuildElement(Document document)
Parameters
document
Document
The document to which the element will be added.
Returns
The constructed SVGElement.
Create(Document)
When overridden in a derived class, creates a new instance of the SVG element.
protected abstract T Create(Document document)
Parameters
document
Document
The document to which the element will be added.
Returns
T
A new instance of type T
.
</action