Class SVGElementBuilder
Nazwa przestrzeń: Aspose.Svg.Builder Zgromadzenie: Aspose.SVG.dll (25.5.0)
Przedstawia podstawową klasę do budowania elementów SVG typu T'.
[ComVisible(true)]
public abstract class SVGElementBuilder<t> : ISVGElementBuilder, IAttributeSetter where T : SVGElement
Rodzaj parametrów
T
Rodzaj elementu SVG ten budownik jest odpowiedzialny za tworzenie.
Inheritance
Implements
ISVGElementBuilder , IAttributeSetter
Dziedziczeni członkowie
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Metody rozszerzenia
SVGBuilderExtensions.AddBuilder<svgelementbuilder
Constructors
Twój budowniczy()
protected SVGElementBuilder()
Properties
Configurations
Otrzymuje listę konfiguracji do zastosowania do elementu SVG.
public List<action<svgelement>> Configurations { get; }
Wartość nieruchomości
List • < Action • < SVGElement • > >
Methods
Attribute(strumień, strumień)
Dodaj konfigurację atrybutów do elementu SVG.
public void Attribute(string name, string value)
Parameters
name
string
Nazwa tego atrybutu.
value
string
Wartość tego atrybutu.
Build(Document)
Buduje element SVG i stosuje do niego wszystkie konfiguracje.
public virtual T Build(Document document)
Parameters
document
Document
Dokument, do którego element zostanie dodany.
Returns
T
Konstruowany i skonfigurowany element SVG typu T'.
Build(T)
Zastosowanie konfiguracji do istniejącego elementu SVG.
public virtual T Build(T element)
Parameters
element
T
Element SVG do konfiguracji.
Returns
T
Konfigurowany element SVG typu T'.
BuildElement(Document)
Tworzy element SVG jako element zwykły.
public SVGElement BuildElement(Document document)
Parameters
document
Document
Dokument, do którego element zostanie dodany.
Returns
Wykonane przez SVGElement.
Create(Document)
Gdy wchodzi w klasę pochodną, tworzy się nowa instancja elementu SVG.
protected abstract T Create(Document document)
Parameters
document
Document
Dokument, do którego element zostanie dodany.
Returns
T
Nowa instancja typu T’.</action