VegaRise.NET
Back to DOM

ThemeColorValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies the standard theme color slots defined by the Office theme model.

Remarks

Theme colors resolve to actual RGB values through the document's active theme. They are used wherever a document should adapt its colors to the selected theme. Values serialize to well-known strings like,, and . "dark1" "accent1" "hyperlink"

Examples

csharp
1// 1. Use the first accent color
2var c = Color.ThemeColor(ThemeColorValues.Accent1);
3
csharp
1// 2. Use the dark1 theme color
2var c = Color.ThemeColor(ThemeColorValues.Dark1);
3
csharp
1// 3. Use the hyperlink theme color
2var c = Color.ThemeColor(ThemeColorValues.Hyperlink);
3
csharp
1// 4. Use in a TextStyle
2var style = new TextStyle { Font = new Font { Color = Color.ThemeColor(ThemeColorValues.Text1) } };
3

Fields

Accent1

Accent1 theme color ("accent1").

Accent2

Accent2 theme color ("accent2").

Accent3

Accent3 theme color ("accent3").

Accent4

Accent4 theme color ("accent4").

Accent5

Accent5 theme color ("accent5").

Accent6

Accent6 theme color ("accent6").

Automatic

Automatic theme color (system-chosen).

Background1

Background1 theme color ("background1").

Background2

Background2 theme color ("background2").

Dark1

Dark1 theme color ("dark1").

Dark2

Dark2 theme color ("dark2").

FollowedHyperlink

Followed hyperlink theme color ("followedHyperlink").

Hyperlink

Hyperlink theme color ("hyperlink").

Light1

Light1 theme color ("light1").

Light2

Light2 theme color ("light2").

None

No theme color ("none").

Text1

Text1 theme color ("text1").

Text2

Text2 theme color ("text2").

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in