SVGBuilderExtensions.Dx

Dx<TBuilder>(this TBuilder, LengthType, params double[])

Sets the ‘dx’ attribute to adjust the horizontal position of each character in the text.

public static TBuilder Dx<TBuilder>(this TBuilder builder, LengthType type = LengthType.Px, 
    params double[] values)
    where TBuilder : ISVGElementBuilder, ITextContentPositioningAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
typeThe type of length unit for the values.
valuesThe horizontal adjustment values for each character.

Return Value

The builder instance for chaining.

Remarks

This method allows fine control over the horizontal spacing of characters in the text.

See Also


Dx<TBuilder>(this TBuilder, double, LengthType)

Sets a single horizontal adjustment value for the text content.

public static TBuilder Dx<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 horizontal adjustment value.
typeThe type of length unit for the value.

Return Value

The builder instance for chaining.

Remarks

This method sets the ‘dx’ attribute with a single value, adjusting the horizontal position of the text content.

See Also