SVGBuilderExtensions.TextLength

SVGBuilderExtensions.TextLength<TBuilder> method

Sets the exact length of the text content.

public static TBuilder TextLength<TBuilder>(this TBuilder builder, double value, 
    LengthType type = LengthType.Px)
    where TBuilder : ISVGElementBuilder, ITextContentPositioningAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe length of the text.
typeThe type of length unit for the value.

Return Value

The builder instance for chaining.

Remarks

This method sets the ’textLength’ attribute, specifying the desired length of the text content, potentially overriding the natural text length.

See Also