SVGBuilderExtensions.Style
Contents
[
Hide
]Style<TBuilder>(this TBuilder, Action<RuleBuilder>)
Sets the ‘style’ attribute using a rule builder to define CSS styles.
public static TBuilder Style<TBuilder>(this TBuilder builder, Action<RuleBuilder> configureRule)
where TBuilder : ISVGElementBuilder, ICoreAttributeSetter
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder. |
builder | The SVG element builder. |
configureRule | The action to configure the CSS rule. |
Return Value
The builder instance for chaining.
See Also
- class RuleBuilder
- interface ISVGElementBuilder
- interface ICoreAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
Style<TBuilder>(this TBuilder, string)
Sets the ‘style’ attribute, defining inline CSS styles for the SVG element.
public static TBuilder Style<TBuilder>(this TBuilder builder, string rules)
where TBuilder : ISVGElementBuilder, ICoreAttributeSetter
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder. |
builder | The SVG element builder. |
rules | The CSS rules as a string. |
Return Value
The builder instance for chaining.
See Also
- interface ISVGElementBuilder
- interface ICoreAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG