Class
ThemeColors

Represents the theme color scheme for the Telerik document model.

Definition

Namespace:Telerik.Windows.Documents.Model.Themes

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ThemeColors

Inheritance: objectThemeColors

Constructors

ThemeColors()

Declaration

cs-api-definition
public ThemeColors()

Properties

Accent1

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

Declaration

cs-api-definition
[XamlSerializable("4F81BD")]
public Color Accent1 { get; set; }

Property Value

Color

Accent2

Represents the third accent color used in the theme.

Declaration

cs-api-definition
[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

cs-api-definition
[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

cs-api-definition
[XamlSerializable("8064A2")]
public Color Accent4 { get; set; }

Property Value

Color

Accent5

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

Declaration

cs-api-definition
[XamlSerializable("4BACC6")]
public Color Accent5 { get; set; }

Property Value

Color

Accent6

Represents the dark color palette defined in the theme colors.

Declaration

cs-api-definition
[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

cs-api-definition
[XamlSerializable("000000")]
public Color Dark1 { get; set; }

Property Value

Color

Dark2

Gets the color used for followed hyperlinks in the theme.

Declaration

cs-api-definition
[XamlSerializable("1F497D")]
public Color Dark2 { get; set; }

Property Value

Color

Represents the color settings for hyperlinks in the theme.

Declaration

cs-api-definition
[XamlSerializable("800080")]
public Color FollowedHyperlink { get; set; }

Property Value

Color

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

Declaration

cs-api-definition
[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.

Declaration

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

Property Value

bool

Light1

Declaration

cs-api-definition
[XamlSerializable("FFFFFF")]
public Color Light1 { get; set; }

Property Value

Color

Light2

Declaration

cs-api-definition
[XamlSerializable("EEECE1")]
public Color Light2 { get; set; }

Property Value

Color

Name

Gets the name of the theme colors.

Declaration

cs-api-definition
[XamlSerializable("Office")]
public string Name { get; set; }

Property Value

string

Methods

GetColor(ThemeColorsEnum, out Color)

Retrieves a color associated with the specified theme color enumeration.

Declaration

cs-api-definition
public bool GetColor(ThemeColorsEnum themeColorsEnum, out Color color)

Parameters

themeColorsEnum

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

bool

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

GetThemeColorsEnum(string)

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

Declaration

cs-api-definition
public static ThemeColorsEnum? GetThemeColorsEnum(string themeColorName)

Parameters

themeColorName

string

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.