SVGStyleElementBuilder.AddRule

AddRule(string, string)

Adds a CSS rule to the style element.

public SVGStyleElementBuilder AddRule(string selector, string rules)
ParameterTypeDescription
selectorStringThe CSS selector for the rule.
rulesStringThe CSS rules as a string.

Return Value

The SVGStyleElementBuilder instance for chaining.

See Also


AddRule(string, Action<RuleBuilder>)

Adds a CSS rule to the style element using a RuleBuilder.

public SVGStyleElementBuilder AddRule(string selector, Action<RuleBuilder> configureRule)
ParameterTypeDescription
selectorStringThe CSS selector for the rule.
configureRuleAction`1A delegate to configure the rule using a RuleBuilder.

Return Value

The SVGStyleElementBuilder instance for chaining.

See Also