RuleBuilder Class

RuleBuilder class

A builder class for constructing CSS style rules. This class is used to dynamically build a string of CSS styles by setting various attributes and their values.

public class RuleBuilder : IAttributeSetter, IPresentationAttributeSetter

Constructors

NameDescription
RuleBuilder()The default constructor.

Methods

NameDescription
Attribute(string, string)Sets or updates a style attribute with a specified value.
Build()Builds the final CSS style string from the accumulated style attributes.

See Also