[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.SolidColor

Class SolidColor

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents a solid color formatting.

public class SolidColor : ColorBase
Inheritance
object
SolidColor
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()

Properties

Brightness

Gets or sets the brightness of the color from -1 (darkest) to 1 (lightest), zero being neutral.

Default value is 0.

public float Brightness { get; set; }

Property Value

float

RGB

Gets or sets the RGB value of this color.

Only solid colors (with alpha 255) are supported.

Resets Brightness and TintAndShade properties to default values.

public override Color RGB { get; set; }

Property Value

System.Drawing.Color

ThemeColor

Gets or sets a theme color that should be applied to the object.

public ThemeColorId ThemeColor { get; set; }

Property Value

ThemeColorId

Remarks

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.

TintAndShade

Gets or sets the lightening or darkening of the color from -1 (darkest) to 1 (lightest), zero being neutral.

Default value is 0.

public float TintAndShade { get; set; }

Property Value

float

Transparency

Gets or sets the degree of transparency of the color as a value between 0 (opaque) and 1 (clear).

public float Transparency { get; set; }

Property Value

float

Methods

Equals(SolidColor)

public bool Equals(SolidColor other)

Parameters

other SolidColor

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

FixInheritedValues()

Fixes all inherited values as "direct" values for this instance.

protected override void FixInheritedValues()

GetHashCode()

public override int GetHashCode()

Returns

int