Class
ThemeColorMapping

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:

cs-api-definition
public class ThemeColorMapping

Inheritance: objectThemeColorMapping

Constructors

ThemeColorMapping()

Declaration

cs-api-definition
public ThemeColorMapping()

Properties

Accent1

Represents the first accent color in the theme color mapping.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.accent1)]
public ThemeColorsEnum Accent1 { get; set; }

Property Value

ThemeColorsEnum

Accent2

Represents the Accent2 color mapping within the theme color settings.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.accent2)]
public ThemeColorsEnum Accent2 { get; set; }

Property Value

ThemeColorsEnum

Accent3

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

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.accent3)]
public ThemeColorsEnum Accent3 { get; set; }

Property Value

ThemeColorsEnum

Accent4

Represents the Accent4 color mapping in the ThemeColorMapping class.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.accent4)]
public ThemeColorsEnum Accent4 { get; set; }

Property Value

ThemeColorsEnum

Accent5

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

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.accent5)]
public ThemeColorsEnum Accent5 { get; set; }

Property Value

ThemeColorsEnum

Accent6

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

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.accent6)]
public ThemeColorsEnum Accent6 { get; set; }

Property Value

ThemeColorsEnum

Background1

Represents the background color used in the theme color mapping.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.light1)]
public ThemeColorsEnum Background1 { get; set; }

Property Value

ThemeColorsEnum

Background2

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

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.text2)]
public ThemeColorsEnum Background2 { get; set; }

Property Value

ThemeColorsEnum

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

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.followedHyperlink)]
public ThemeColorsEnum FollowedHyperlink { get; set; }

Property Value

ThemeColorsEnum

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.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.hyperlink)]
public ThemeColorsEnum Hyperlink { get; set; }

Property Value

ThemeColorsEnum

IsDefault

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

Declaration

cs-api-definition
public bool IsDefault { get; }

Property Value

bool

Text1

Represents the color mapping for text in the theme.

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.dark1)]
public ThemeColorsEnum Text1 { get; set; }

Property Value

ThemeColorsEnum

Text2

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

Declaration

cs-api-definition
[XamlSerializable(ThemeColorsEnum.dark2)]
public ThemeColorsEnum Text2 { get; set; }

Property Value

ThemeColorsEnum

Methods

GetMappedColor(ThemeColorsEnum)

Retrieves the mapped color for the specified theme color enumeration.

Declaration

cs-api-definition
public ThemeColorsEnum GetMappedColor(ThemeColorsEnum enumColor)

Parameters

enumColor

ThemeColorsEnum

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.