ClassThemeColorMapping
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:
public class ThemeColorMapping
Inheritance: objectThemeColorMapping
Constructors
ThemeColorMapping()
Declaration
public ThemeColorMapping()
Properties
Accent1
Represents the first accent color in the theme color mapping.
Declaration
[XamlSerializable(ThemeColorsEnum.accent1)]
public ThemeColorsEnum Accent1 { get; set; }
Property Value
Accent2
Represents the Accent2 color mapping within the theme color settings.
Declaration
[XamlSerializable(ThemeColorsEnum.accent2)]
public ThemeColorsEnum Accent2 { get; set; }
Property Value
Accent3
Represents the accent color mapping for theme element 3 in the Telerik Windows Documents model.
Declaration
[XamlSerializable(ThemeColorsEnum.accent3)]
public ThemeColorsEnum Accent3 { get; set; }
Property Value
Accent4
Represents the Accent4 color mapping in the ThemeColorMapping class.
Declaration
[XamlSerializable(ThemeColorsEnum.accent4)]
public ThemeColorsEnum Accent4 { get; set; }
Property Value
Accent5
Represents the Accent5 color in the ThemeColorMapping of Telerik's Document Model.
Declaration
[XamlSerializable(ThemeColorsEnum.accent5)]
public ThemeColorsEnum Accent5 { get; set; }
Property Value
Accent6
Represents the accent color mapping for the sixth accent color in the theme.
Declaration
[XamlSerializable(ThemeColorsEnum.accent6)]
public ThemeColorsEnum Accent6 { get; set; }
Property Value
Background1
Represents the background color used in the theme color mapping.
Declaration
[XamlSerializable(ThemeColorsEnum.light1)]
public ThemeColorsEnum Background1 { get; set; }
Property Value
Background2
Represents the second background color in the theme color mapping for the Telerik document model.
Declaration
[XamlSerializable(ThemeColorsEnum.text2)]
public ThemeColorsEnum Background2 { get; set; }
Property Value
FollowedHyperlink
Gets or sets the color used for followed hyperlinks in the theme.
Declaration
[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.
Hyperlink
Represents the hyperlink theme color mapping in the Telerik document model.
Declaration
[XamlSerializable(ThemeColorsEnum.hyperlink)]
public ThemeColorsEnum Hyperlink { get; set; }
Property Value
IsDefault
Gets a value indicating whether the color mapping is the default theme color mapping.
Text1
Represents the color mapping for text in the theme.
Declaration
[XamlSerializable(ThemeColorsEnum.dark1)]
public ThemeColorsEnum Text1 { get; set; }
Property Value
Text2
Represents the color mapping for the second text color in a theme.
Declaration
[XamlSerializable(ThemeColorsEnum.dark2)]
public ThemeColorsEnum Text2 { get; set; }
Property Value
Methods
GetMappedColor(ThemeColorsEnum)
Retrieves the mapped color for the specified theme color enumeration.
Declaration
public ThemeColorsEnum GetMappedColor(ThemeColorsEnum enumColor)
Parameters
enumColor
The theme color enumeration to be mapped.
Returns
The mapped color corresponding to the provided theme color enumeration. If no mapping exists, a default color may be returned.