GH_CssStyleSheet

References
public class GH_CssStyleSheet
Represents an entire CSS style sheet specification.

Constructors

GH_CssStyleSheet

#
public GH_CssStyleSheet()
Create a new CSS style sheet.

Properties

Styles

#
public ReadOnlyCollection<GH_CssStyle> Styles { get; }
Gets a list of all the CSS styles defined locally.

Methods

AddStyle

#
public void AddStyle(params GH_CssStyle[] styles)
Add a new style to this sheet. If the style is already defined, it will not be added again.
styles (params GH_CssStyle[])Styles to add.

FormatCss

#
public string FormatCss(int indent)
Format the entire style-sheet as CSS 2.0 compliant text.
indent (int)Indentation depth of css sheet.

IsStyleDefined

#
public bool IsStyleDefined(GH_CssStyle style)
Test to see whether a style has already been defined.
style (GH_CssStyle)Style to test.
True if the style has already been defined.