SVGBuilderExtensions.Rotate

Rotate<TBuilder>(this TBuilder, params double[])

Sets rotation angles for individual characters or segments of the text content.

public static TBuilder Rotate<TBuilder>(this TBuilder builder, params double[] values)
    where TBuilder : ISVGElementBuilder, ITextContentPositioningAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valuesAn array of rotation angles in degrees.

Return Value

The builder instance for chaining.

Remarks

This method sets the ‘rotate’ attribute with multiple values, allowing for individual rotation of each character or text segment.

See Also


Rotate<TBuilder>(this TBuilder, double)

Sets a single rotation angle for the entire text content.

public static TBuilder Rotate<TBuilder>(this TBuilder builder, double value)
    where TBuilder : ISVGElementBuilder, ITextContentPositioningAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe rotation angle in degrees.

Return Value

The builder instance for chaining.

Remarks

This method sets the ‘rotate’ attribute with a single value, applying the same rotation angle to all text content.

See Also