Back to DOM
SchemeColorValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies a scheme color slot (theme-relative color role).
Remarks
The scheme color values mirror the theme color roles but are resolved through the document's color scheme rather than its theme. They are typically used when the document prefers to define its own color scheme instead of relying on the theme.
Examples
csharp
1// 1. Background1 slot
2var c = new Color { SchemeColorValue = SchemeColorValues.Background1 };
3
csharp
1// 2. Accent1 slot
2var c = new Color { SchemeColorValue = SchemeColorValues.Accent1 };
3
csharp
1// 3. Hyperlink slot
2var c = new Color { SchemeColorValue = SchemeColorValues.Hyperlink };
3
csharp
1// 4. Use in a scheme-aware style
2var style = new TextStyle { Font = new Font { Color = new Color { SchemeColorValue = SchemeColorValues.Text1 } } };
3
Fields
Accent1
First accent slot.
Accent2
Second accent slot.
Accent3
Third accent slot.
Accent4
Fourth accent slot.
Accent5
Fifth accent slot.
Accent6
Sixth accent slot.
Background1
First background slot.
Background2
Second background slot.
Dark1
First dark slot.
Dark2
Second dark slot.
FollowedHyperlink
Followed hyperlink slot.
Hyperlink
Hyperlink slot.
Light1
First light slot.
Light2
Second light slot.
PhColor
Placeholder color slot.
Text1
First text slot.
Text2
Second text slot.