SVGBuilderExtensions.Stroke
Contents
[
Hide
]Stroke(this TBuilder, Action<PaintBuilder>)
Sets the ‘stroke’ attribute for an SVG element using a custom paint configuration.
public static TBuilder Stroke<TBuilder>(this TBuilder builder, Action<PaintBuilder> configure)
where TBuilder : IAttributeSetter, IPresentationAttributeSetter
| Parameter | Description |
|---|---|
| TBuilder | The type of the SVG element builder. |
| builder | The builder instance. |
| configure | A delegate to configure the paint. |
Return Value
The builder instance for chaining.
See Also
- class PaintBuilder
- interface IAttributeSetter
- interface IPresentationAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
Stroke(this TBuilder, Color)
Sets the ‘stroke’ attribute for an SVG element using a specific color.
public static TBuilder Stroke<TBuilder>(this TBuilder builder, Color color)
where TBuilder : IAttributeSetter, IPresentationAttributeSetter
| Parameter | Description |
|---|---|
| TBuilder | The type of the SVG element builder. |
| builder | The builder instance. |
| color | The color to use for the stroke. |
Return Value
The builder instance for chaining.
See Also
- interface IAttributeSetter
- interface IPresentationAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
Stroke(this TBuilder, Paint)
Sets the ‘stroke’ attribute for an SVG element using a predefined paint value.
public static TBuilder Stroke<TBuilder>(this TBuilder builder, Paint paint)
where TBuilder : IAttributeSetter, IPresentationAttributeSetter
| Parameter | Description |
|---|---|
| TBuilder | The type of the SVG element builder. |
| builder | The builder instance. |
| paint | The paint value to set. |
Return Value
The builder instance for chaining.
See Also
- enum Paint
- interface IAttributeSetter
- interface IPresentationAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG