CssUtils

TheArtOfDev.HtmlRenderer.Core.Utils

Utility method for handling CSS stuff.

Properties

DefaultSelectionBackcolor : RColor

Brush for selection background

Methods

GetPropertyValue(CssBox, string) : string

Get CSS box property value by the CSS name. Used as a mapping between CSS property and the class property.

cssBox
the CSS box to get it's property value
propName
the name of the CSS property

Returns: the value of the property, null if no such property exists

SetPropertyValue(CssBox, string, string)

Set CSS box property value by the CSS name. Used as a mapping between CSS property and the class property.

cssBox
the CSS box to set it's property value
propName
the name of the CSS property
value
the value to set
WhiteSpace(RGraphics, CssBoxProperties) : double

Gets the white space width of the specified box

g
box

Fields

_defaultSelectionBackcolor : RColor

Brush for selection background