SVGBuilderExtensions.X

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

Sets the ‘x’ attribute for positioning the text content along the x-axis.

public static TBuilder X<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 x-axis position values.

Return Value

The builder instance for chaining.

Remarks

This method sets the ‘x’ attribute, which determines the horizontal position(s) of the text element.

See Also


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

Sets the ‘x’ attribute for an SVG element.

public static TBuilder X<TBuilder>(this TBuilder builder, double value, 
    LengthType type = LengthType.Px)
    where TBuilder : ISVGElementBuilder, IXAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe value for the ‘x’ attribute.
typeThe type of length measurement (default is pixels).

Return Value

The builder instance for chaining.

See Also