The Style type exposes the following members.

Constructors

  NameDescription
Public methodStyle
Initializes a new instance of the Style class with a specified style.

Methods

  NameDescription
Public methodAdd(Style)
Adds a child style to this style. Will have the same class id as the parent.
Public methodAdd(Tag)
Adds a selector element.
Public methodRender

If we have selector elements *or* a class, render a selector, followed by "{", the style and "}".

Else, output directly what we have been given.

(Overrides Tag..::..Render()()()().)
Public methodToString
This element's name.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyClass
Gets or sets the CSS class of this style. It will be auto-generated if empty.

See Also