SVGBuilderExtensions.AddCircle

AddCircle<TBuilder>(this TBuilder, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGCircleElementBuilder>)

Adds a ‘circle’ element with specified center, radius, and styles to the SVG builder.

public static TBuilder AddCircle<TBuilder>(this TBuilder builder, 
    OneOf<double, (double, LengthType)> cx = null, OneOf<double, (double, LengthType)> cy = null, 
    OneOf<double, (double, LengthType)> r = null, OneOf<Color, Paint, string> fill = null, 
    OneOf<Color, Paint, string> stroke = null, string id = null, 
    Action<SVGCircleElementBuilder> extend = null)
    where TBuilder : ISVGElementBuilder, IShapeElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder, facilitating fluent API usage.
builderThe SVG builder instance to which the ‘circle’ element will be added.
cxThe x-coordinate of the circle’s center. Can be a double value or a tuple of double and LengthType.
cyThe y-coordinate of the circle’s center. Can be a double value or a tuple of double and LengthType.
rThe radius of the circle. Can be a double value or a tuple of double and LengthType.
fillThe fill color or paint style for the circle. Can be a Color or a Paint enum value or paint server ID. Optional parameter.
strokeThe stroke color or paint style for the circle’s outline. Can be a Color or a Paint enum value or paint server ID. Optional parameter.
idThe unique identifier for the circle element. Optional parameter.
extendAn optional action to further configure the circle element builder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddCircle<TBuilder>(this TBuilder, Action<SVGCircleElementBuilder>)

Adds a ‘circle’ element configuration to the builder.

public static TBuilder AddCircle<TBuilder>(this TBuilder builder, 
    Action<SVGCircleElementBuilder> configure)
    where TBuilder : ISVGElementBuilder, IShapeElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
configureThe configuration action for the ‘circle’ element.

Return Value

The builder instance for chaining.

See Also