SVGStyleElementBuilder.AddRule
Contents
[
Hide
]AddRule(string, string)
Adds a CSS rule to the style element.
public SVGStyleElementBuilder AddRule(string selector, string rules)
Parameter | Type | Description |
---|---|---|
selector | String | The CSS selector for the rule. |
rules | String | The CSS rules as a string. |
Return Value
The SVGStyleElementBuilder instance for chaining.
See Also
- class SVGStyleElementBuilder
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG
AddRule(string, Action<RuleBuilder>)
Adds a CSS rule to the style element using a RuleBuilder.
public SVGStyleElementBuilder AddRule(string selector, Action<RuleBuilder> configureRule)
Parameter | Type | Description |
---|---|---|
selector | String | The CSS selector for the rule. |
configureRule | Action`1 | A delegate to configure the rule using a RuleBuilder. |
Return Value
The SVGStyleElementBuilder instance for chaining.
See Also
- class RuleBuilder
- class SVGStyleElementBuilder
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG