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

Represents the theme color scheme for the Telerik document model.

Definition

Namespace:Telerik.Windows.Documents.Model.Themes

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ThemeColors

Inheritance: objectThemeColors

Constructors

C#
public ThemeColors()

Properties

Accent1

Color

Represents the Accent2 color within the theme colors in the Telerik Windows Documents Model.

C#
[XamlSerializable("4F81BD")]
public Color Accent1 { get; set; }

Accent2

Color

Represents the third accent color used in the theme.

C#
[XamlSerializable("C0504D")]
public Color Accent2 { get; set; }
Remarks:

This color can be used for various UI elements to ensure a consistent look and feel across the application.

Accent3

Color

Represents the Accent4 color within the theme colors of the Telerik document model.

C#
[XamlSerializable("9BBB59")]
public Color Accent3 { get; set; }

Accent4

Color

Represents the fifth accent color in the theme colors of Telerik UI components.

C#
[XamlSerializable("8064A2")]
public Color Accent4 { get; set; }

Accent5

Color

Gets the color value for Accent 6 in the theme colors.

C#
[XamlSerializable("4BACC6")]
public Color Accent5 { get; set; }

Accent6

Color

Represents the dark color palette defined in the theme colors.

C#
[XamlSerializable("F79646")]
public Color Accent6 { get; set; }
Remarks:

This member provides access to the Dark1 color which is part of the pre-defined theme colors.

Dark1

Color

Represents the dark2 theme colors in the Telerik document model.

C#
[XamlSerializable("000000")]
public Color Dark1 { get; set; }

Dark2

Color

Gets the color used for followed hyperlinks in the theme.

C#
[XamlSerializable("1F497D")]
public Color Dark2 { get; set; }

Represents the color settings for hyperlinks in the theme.

C#
[XamlSerializable("800080")]
public Color FollowedHyperlink { get; set; }

Represents the Light1 theme colors used in the Telerik Document Model.

C#
[XamlSerializable("0000FF")]
public Color Hyperlink { get; set; }

Gets a value indicating whether the theme colors are set to the default values.

C#
public bool IsDefault { get; }

Light1

Color

C#
[XamlSerializable("FFFFFF")]
public Color Light1 { get; set; }

Light2

Color

C#
[XamlSerializable("EEECE1")]
public Color Light2 { get; set; }

Gets the name of the theme colors.

C#
[XamlSerializable("Office")]
public string Name { get; set; }

Methods

Retrieves a color associated with the specified theme color enumeration.

C#
public bool GetColor(ThemeColorsEnum themeColorsEnum, out Color color)
Parameters:themeColorsEnumThemeColorsEnum

The theme color enumeration value for which to retrieve the color.

colorColor

When this method returns, contains the color associated with the specified theme color enumeration.

Returns:

bool

True if the color was successfully retrieved; otherwise, false.

Retrieves the theme colors enumeration based on the specified theme name.

C#
public static ThemeColorsEnum? GetThemeColorsEnum(string themeColorName)
Parameters:themeColorNamestring

The name of the theme for which to retrieve the color enumeration.

Returns:

ThemeColorsEnum?

A value of type ThemeColorsEnum representing the theme colors associated with the specified theme name.