Class SVGElementBuilder

Class SVGElementBuilder

名称: Aspose.Svg.Builder 會議: Aspose.SVG.dll (25.5.0)

代表构建 SVG 元素的基本类型 T'.

[ComVisible(true)]
public abstract class SVGElementBuilder<t> : ISVGElementBuilder, IAttributeSetter where T : SVGElement

类型参数

T

SVG元素的类型,这个建筑师负责创建。

Inheritance

object SVGElementBuilder

Implements

ISVGElementBuilder , IAttributeSetter

继承人

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

延伸方法

SVGBuilderExtensions.AddBuilder<svgelementbuilder, TElementBuilder>(SVGElementBuilder, TElementBuilder) , SVGBuilderExtensions.SetAttribute<svgelementbuilder>(SVGElementBuilder, string, string)

Constructors

创建者()

protected SVGElementBuilder()

Properties

Configurations

获取将适用于 SVG 元素的配置列表。

public List<action<svgelement>&gt; Configurations { get; }

财产价值

List < Action < SVGElement >>

Methods

Attribute(字符串, string)

将属性配置添加到 SVG 元素中。

public void Attribute(string name, string value)

Parameters

name string

属性的名字。

value string

属性的价值。

Build(Document)

构建 SVG 元素并适用所有配置。

public virtual T Build(Document document)

Parameters

document Document

文件将添加到该元素的文件。

Returns

T

构建和配置的 SVG 元素类型 T'.

Build(T)

适用于现有 SVG 元素的配置。

public virtual T Build(T element)

Parameters

element T

SVG 要配置的元素。

Returns

T

配置的 SVG 元素类型 T'.

BuildElement(Document)

它构成SVG元素作为一个基因 SVGElement。

public SVGElement BuildElement(Document document)

Parameters

document Document

文件将添加到该元素的文件。

Returns

SVGElement

建造的SVGElement。

Create(Document)

在衍生类中过分时,创建了 SVG 元素的新例子。

protected abstract T Create(Document document)

Parameters

document Document

文件将添加到该元素的文件。

Returns

T

一个新的例子类型 T’.</action</svgerementbuilder

 中文