SVGBuilderExtensions.AddEllipse
Contents
[
Hide
]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
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder, facilitating fluent API usage. |
builder | The SVG builder instance to which the ’ellipse’ element will be added. |
cx | The x-coordinate of the center of the ellipse. Can be a double value or a tuple of double and LengthType. |
cy | The y-coordinate of the center of the ellipse. Can be a double value or a tuple of double and LengthType. |
rx | The x-radius of the ellipse. Can be a double value or a tuple of double and LengthType. |
ry | The y-radius of the ellipse. Can be a double value or a tuple of double and LengthType. |
fill | The fill color or paint style for the ellipse. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
stroke | The stroke color or paint style for the ellipse. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
id | The unique identifier for the ellipse element. Optional parameter. |
extend | An optional action to further configure the ellipse element builder. |
Return Value
The builder instance, allowing for method chaining.
See Also
- class OneOf<T1,T2>
- enum LengthType
- class OneOf<T1,T2,T3>
- enum Paint
- class SVGEllipseElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
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
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder. |
builder | The builder instance. |
configure | The configuration action for the ’ellipse’ element. |
Return Value
The builder instance for chaining.
See Also
- class SVGEllipseElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG