SVGBuilderExtensions.AddPolyline
Contents
[
Hide
]AddPolyline<TBuilder>(this TBuilder, double[], OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGPolylineElementBuilder>)
Adds a ‘polyline’ element to the SVG builder, specifying its vertices, and styles.
public static TBuilder AddPolyline<TBuilder>(this TBuilder builder, double[] points,
OneOf<Color, Paint, string> fill = null, OneOf<Color, Paint, string> stroke = null,
string id = null, Action<SVGPolylineElementBuilder> 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 ‘polyline’ element will be added. |
points | An array of doubles representing the points of the polyline (alternating x and y coordinates). |
fill | The fill color or paint style for the polyline. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
stroke | The stroke color or paint style for the polyline. Can be a Color or a Paint enum value or paint server ID. Optional parameter. |
id | The unique identifier for the polyline element. Optional parameter. |
extend | An optional action to further configure the polyline element builder. |
Return Value
The builder instance, allowing for method chaining.
See Also
- class OneOf<T1,T2,T3>
- enum Paint
- class SVGPolylineElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
AddPolyline<TBuilder>(this TBuilder, Action<SVGPolylineElementBuilder>)
Adds a ‘polyline’ element configuration to the builder.
public static TBuilder AddPolyline<TBuilder>(this TBuilder builder,
Action<SVGPolylineElementBuilder> 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 ‘polyline’ element. |
Return Value
The builder instance for chaining.
See Also
- class SVGPolylineElementBuilder
- interface ISVGElementBuilder
- interface IShapeElementBuilder
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG