SVGBuilderExtensions.AddEllipse

AddEllipse<TBuilder>(this TBuilder, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGEllipseElementBuilder>)

Adds an ’ellipse’ element to the SVG builder, specifying its center, radii, and styles.

public static TBuilder AddEllipse<TBuilder>(this TBuilder builder, 
    OneOf<double, (double, LengthType)> cx = null, OneOf<double, (double, LengthType)> cy = null, 
    OneOf<double, (double, LengthType)> rx = null, OneOf<double, (double, LengthType)> ry = null, 
    OneOf<Color, Paint, string> fill = null, OneOf<Color, Paint, string> stroke = null, 
    string id = null, Action<SVGEllipseElementBuilder> 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 ’ellipse’ element will be added.
cxThe x-coordinate of the center of the ellipse. Can be a double value or a tuple of double and LengthType.
cyThe y-coordinate of the center of the ellipse. Can be a double value or a tuple of double and LengthType.
rxThe x-radius of the ellipse. Can be a double value or a tuple of double and LengthType.
ryThe y-radius of the ellipse. Can be a double value or a tuple of double and LengthType.
fillThe fill color or paint style for the ellipse. Can be a Color or a Paint enum value or paint server ID. Optional parameter.
strokeThe stroke color or paint style for the ellipse. Can be a Color or a Paint enum value or paint server ID. Optional parameter.
idThe unique identifier for the ellipse element. Optional parameter.
extendAn optional action to further configure the ellipse element builder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddEllipse<TBuilder>(this TBuilder, Action<SVGEllipseElementBuilder>)

Adds an ’ellipse’ element configuration to the builder.

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

Return Value

The builder instance for chaining.

See Also