SVGBuilderExtensions.Fill
Contents
[
Hide
]Fill<TBuilder>(this TBuilder, Action<PaintBuilder>)
Sets the ‘fill’ attribute for an SVG element using a custom configuration.
public static TBuilder Fill<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 PaintBuilder. |
Return Value
The builder instance for chaining.
See Also
- class PaintBuilder
- interface IAttributeSetter
- interface IPresentationAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
Fill<TBuilder>(this TBuilder, Color)
Sets the ‘fill’ attribute for an SVG element using a color.
public static TBuilder Fill<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 set as the fill. |
Return Value
The builder instance for chaining.
See Also
- interface IAttributeSetter
- interface IPresentationAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
Fill<TBuilder>(this TBuilder, Paint)
Sets the ‘fill’ attribute for an SVG element using a predefined Paint enum value.
public static TBuilder Fill<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 enum 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
Fill<TBuilder>(this TBuilder, AnimationFill)
Sets the ‘fill’ attribute, defining how the animation should apply styles outside its active duration.
public static TBuilder Fill<TBuilder>(this TBuilder builder, AnimationFill value)
where TBuilder : ISVGElementBuilder, IAnimationTimingAttributeSetter
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder. |
builder | The SVG element builder. |
value | The fill behavior of the animation. |
Return Value
The builder instance for chaining.
See Also
- enum AnimationFill
- interface ISVGElementBuilder
- interface IAnimationTimingAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG