New to Telerik UI for WPFStart a free 30-day trial

Represents a mapping of theme colors that defines how colors are applied within a theme.

Definition

Namespace:Telerik.Windows.Documents.Model.Themes

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ThemeColorMapping

Inheritance: objectThemeColorMapping

Constructors

C#
public ThemeColorMapping()

Properties

Represents the first accent color in the theme color mapping.

C#
[XamlSerializable(ThemeColorsEnum.accent1)]
public ThemeColorsEnum Accent1 { get; set; }

Represents the Accent2 color mapping within the theme color settings.

C#
[XamlSerializable(ThemeColorsEnum.accent2)]
public ThemeColorsEnum Accent2 { get; set; }

Represents the accent color mapping for theme element 3 in the Telerik Windows Documents model.

C#
[XamlSerializable(ThemeColorsEnum.accent3)]
public ThemeColorsEnum Accent3 { get; set; }

Represents the Accent4 color mapping in the ThemeColorMapping class.

C#
[XamlSerializable(ThemeColorsEnum.accent4)]
public ThemeColorsEnum Accent4 { get; set; }

Represents the Accent5 color in the ThemeColorMapping of Telerik's Document Model.

C#
[XamlSerializable(ThemeColorsEnum.accent5)]
public ThemeColorsEnum Accent5 { get; set; }

Represents the accent color mapping for the sixth accent color in the theme.

C#
[XamlSerializable(ThemeColorsEnum.accent6)]
public ThemeColorsEnum Accent6 { get; set; }

Represents the background color used in the theme color mapping.

C#
[XamlSerializable(ThemeColorsEnum.light1)]
public ThemeColorsEnum Background1 { get; set; }

Represents the second background color in the theme color mapping for the Telerik document model.

C#
[XamlSerializable(ThemeColorsEnum.text2)]
public ThemeColorsEnum Background2 { get; set; }

Gets or sets the color used for followed hyperlinks in the theme.

C#
[XamlSerializable(ThemeColorsEnum.followedHyperlink)]
public ThemeColorsEnum FollowedHyperlink { get; set; }
Property Value:

The color assigned to followed hyperlinks. If not set, the default theme color is used.

Represents the hyperlink theme color mapping in the Telerik document model.

C#
[XamlSerializable(ThemeColorsEnum.hyperlink)]
public ThemeColorsEnum Hyperlink { get; set; }

Gets a value indicating whether the color mapping is the default theme color mapping.

C#
public bool IsDefault { get; }

Represents the color mapping for text in the theme.

C#
[XamlSerializable(ThemeColorsEnum.dark1)]
public ThemeColorsEnum Text1 { get; set; }

Represents the color mapping for the second text color in a theme.

C#
[XamlSerializable(ThemeColorsEnum.dark2)]
public ThemeColorsEnum Text2 { get; set; }

Methods

Retrieves the mapped color for the specified theme color enumeration.

C#
public ThemeColorsEnum GetMappedColor(ThemeColorsEnum enumColor)
Parameters:enumColorThemeColorsEnum

The theme color enumeration to be mapped.

Returns:

ThemeColorsEnum

The mapped color corresponding to the provided theme color enumeration. If no mapping exists, a default color may be returned.