Table of Contents

Constructor DocColor

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

DocColor(ColorRgb)

Initializes a literal color with no theme reference.

public DocColor(ColorRgb rgb)

Parameters

rgb ColorRgb

The literal color value (may be Auto).

DocColor(ColorRgb?, ThemeColorSlot?, byte?, byte?)

Initializes a color with an optional theme reference.

public DocColor(ColorRgb? rgb, ThemeColorSlot? themeSlot, byte? themeTint = null, byte? themeShade = null)

Parameters

rgb ColorRgb?

The literal fallback value written alongside the theme reference, or null.

themeSlot ThemeColorSlot?

The referenced theme slot, or null.

themeTint byte?

The tint transform byte (w:themeTint), or null.

themeShade byte?

The shade transform byte (w:themeShade), or null.