ClassThemeColors
Represents the theme color scheme for the Telerik document model.
Definition
Namespace:Telerik.Windows.Documents.Model.Themes
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ThemeColors
Inheritance: objectThemeColors
Constructors
ThemeColors()
Declaration
public ThemeColors()
Properties
Accent1
Represents the Accent2 color within the theme colors in the Telerik Windows Documents Model.
Declaration
[XamlSerializable("4F81BD")]
public Color Accent1 { get; set; }
Property Value
Color
Accent2
Represents the third accent color used in the theme.
Declaration
[XamlSerializable("C0504D")]
public Color Accent2 { get; set; }
Property Value
Color
Remarks
This color can be used for various UI elements to ensure a consistent look and feel across the application.
Accent3
Represents the Accent4 color within the theme colors of the Telerik document model.
Declaration
[XamlSerializable("9BBB59")]
public Color Accent3 { get; set; }
Property Value
Color
Accent4
Represents the fifth accent color in the theme colors of Telerik UI components.
Declaration
[XamlSerializable("8064A2")]
public Color Accent4 { get; set; }
Property Value
Color
Accent5
Gets the color value for Accent 6 in the theme colors.
Declaration
[XamlSerializable("4BACC6")]
public Color Accent5 { get; set; }
Property Value
Color
Accent6
Represents the dark color palette defined in the theme colors.
Declaration
[XamlSerializable("F79646")]
public Color Accent6 { get; set; }
Property Value
Color
Remarks
This member provides access to the Dark1 color which is part of the pre-defined theme colors.
Dark1
Represents the dark2 theme colors in the Telerik document model.
Declaration
[XamlSerializable("000000")]
public Color Dark1 { get; set; }
Property Value
Color
Dark2
Gets the color used for followed hyperlinks in the theme.
Declaration
[XamlSerializable("1F497D")]
public Color Dark2 { get; set; }
Property Value
Color
FollowedHyperlink
Represents the color settings for hyperlinks in the theme.
Declaration
[XamlSerializable("800080")]
public Color FollowedHyperlink { get; set; }
Property Value
Color
Hyperlink
Represents the Light1 theme colors used in the Telerik Document Model.
Declaration
[XamlSerializable("0000FF")]
public Color Hyperlink { get; set; }
Property Value
Color
IsDefault
Gets a value indicating whether the theme colors are set to the default values.
Light1
Declaration
[XamlSerializable("FFFFFF")]
public Color Light1 { get; set; }
Property Value
Color
Light2
Declaration
[XamlSerializable("EEECE1")]
public Color Light2 { get; set; }
Property Value
Color
Methods
GetColor(ThemeColorsEnum, out Color)
Retrieves a color associated with the specified theme color enumeration.
Declaration
public bool GetColor(ThemeColorsEnum themeColorsEnum, out Color color)
Parameters
themeColorsEnum
The theme color enumeration value for which to retrieve the color.
color
Color
When this method returns, contains the color associated with the specified theme color enumeration.
Returns
True if the color was successfully retrieved; otherwise, false.
GetThemeColorsEnum(string)
Retrieves the theme colors enumeration based on the specified theme name.
Declaration
public static ThemeColorsEnum? GetThemeColorsEnum(string themeColorName)
Parameters
themeColorName
The name of the theme for which to retrieve the color enumeration.
Returns
A value of type ThemeColorsEnum representing the theme colors associated with the specified theme name.