[]
Represents the color of a one-color object or the foreground or background color of an object with a gradient or patterned fill. You can set colors to an explicit red-green-blue value by using the RGB property.
public class WordColor : FormattingBag
Gets or sets the RGB color value. The System.Drawing.Color.Empty value indicates auto color. Only solid colors (with alpha 255) are supported.
If this property is set to a value other than System.Drawing.Color.Empty, ThemeColor, ThemeShade and ThemeTint property values are removed.
public Color RGB { get; set; }
Gets or sets a theme color that should be applied to the current object.
public ThemeColorId ThemeColor { get; set; }
The specified theme color is a reference to one of the predefined theme colors, located in the document themes, which allows for color information to be set centrally in the document.
Gets or sets the shade value applied to the supplied theme color (if any) for this contents.
public byte ThemeShade { get; set; }
If the ThemeShade is supplied, then it is applied to the RGB value of the theme color to determine the final color applied to this contents.
Gets or sets the tint value applied to the supplied theme color (if any) for this contents.
public byte ThemeTint { get; set; }
If the ThemeTint is supplied, then it is applied to the RGB value of the theme color to determine the final color applied to this contents.
Resets to default color formatting.
public override void ClearFormatting()
Removes all font formatting specified explicitly on the object from which Color was obtained so the color formatting will be inherited from the appropriate parent.
protected bool Equals(WordColor other)
other
WordColorpublic override bool Equals(object obj)
obj
objectFixes all inherited values as "direct" values for this instance.
protected override void FixInheritedValues()
public override int GetHashCode()