SVGBuilderExtensions.AddContent

SVGBuilderExtensions.AddContent<TBuilder> method

Adds text content to the SVG element.

public static TBuilder AddContent<TBuilder>(this TBuilder builder, string text)
    where TBuilder : ISVGElementBuilder, ITextContentSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
textThe text to be added to the element.

Return Value

The builder instance for chaining.

Remarks

This method allows adding text content directly to an SVG element. It’s useful for elements that contain textual data.

See Also