New to Telerik Document ProcessingStart a free 30-day trial

Maps a theme color category to a concrete color used by a theme’s color scheme.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Theming

Assembly:Telerik.Windows.Documents.Core.dll

Syntax:

C#
public class ThemeColor

Inheritance: objectThemeColor

Constructors

Initializes a new instance of the ThemeColor class.

C#
public ThemeColor(Color color, ThemeColorType themeColorType)
Parameters:colorColor

The color.

themeColorTypeThemeColorType

Type of the theme color.

Methods

Create a deep copy of this theme color.

C#
public ThemeColor Clone()
Returns:

ThemeColor

The cloned theme color.

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Properties

Color

Color

Gets the concrete color assigned to this theme color type.

C#
public Color Color { get; }
Property Value:

The color.

Gets the theme color category this color represents.

C#
public ThemeColorType ThemeColorType { get; }
Property Value:

The type of the theme color.