SVGBuilderExtensions.AddPath
Contents
[
Hide
]AddPath<TBuilder>(this TBuilder, OneOf<string, Action<PathBuilder>>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGPathElementBuilder>)
Adds a ‘path’ element to the SVG builder, specifying its path data and styles.
public static TBuilder AddPath<TBuilder>(this TBuilder builder,
OneOf<string, Action<PathBuilder>> d, OneOf<Color, Paint, string> fill = null,
OneOf<Color, Paint, string> stroke = null, string id = null,
Action<SVGPathElementBuilder> 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 ‘path’ element will be added. |
d | A OneOf type that can either be a string representing the path data or an action that configures a PathBuilder. |
fill | The fill color or paint style for the path. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
stroke | The stroke color or paint style for the path. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
id | The unique identifier for the path element. Optional parameter. |
extend | An optional action to further configure the path element builder. |
Return Value
The builder instance, allowing for method chaining.
See Also
- class OneOf<T1,T2>
- class PathBuilder
- class OneOf<T1,T2,T3>
- enum Paint
- class SVGPathElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
AddPath<TBuilder>(this TBuilder, Action<PathBuilder>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGPathElementBuilder>)
Overload of AddPath that takes an action to configure a PathBuilder directly.
public static TBuilder AddPath<TBuilder>(this TBuilder builder, Action<PathBuilder> d,
OneOf<Color, Paint, string> fill = null, OneOf<Color, Paint, string> stroke = null,
string id = null, Action<SVGPathElementBuilder> 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 ‘path’ element will be added. |
d | An action that configures a PathBuilder to define the path data. |
fill | The fill color or paint style for the path. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
stroke | The stroke color or paint style for the path. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
id | The unique identifier for the path element. Optional parameter. |
extend | An optional action to further configure the path element builder. |
Return Value
The builder instance, allowing for method chaining.
See Also
- class PathBuilder
- class OneOf<T1,T2,T3>
- enum Paint
- class SVGPathElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
AddPath<TBuilder>(this TBuilder, Action<SVGPathElementBuilder>)
Adds a ‘path’ element configuration to the builder.
public static TBuilder AddPath<TBuilder>(this TBuilder builder,
Action<SVGPathElementBuilder> 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 ‘path’ element. |
Return Value
The builder instance for chaining.
See Also
- class SVGPathElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG