SVGBuilderExtensions.TextAnchor

SVGBuilderExtensions.TextAnchor<TBuilder> method

Sets the ’text-anchor’ attribute for an SVG element, defining how the text is horizontally aligned relative to the given point.

public static TBuilder TextAnchor<TBuilder>(this TBuilder builder, TextAnchor textAnchor)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
textAnchorThe text anchor position.

Return Value

The builder instance for chaining.

See Also