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