SyntaxEditorThemeManager Class
Manages themes for use with SyntaxEditor including the ability to synchronize DefaultImageSet and CurrentColorPalette to changes in CurrentTheme.
public static class SyntaxEditorThemeManager
- Inheritance:
- object object
Properties
IsCommonImageSetSynchronizationEnabled
Gets or sets if the DefaultImageSet property is automatically synchronized with the current theme.
public static bool IsCommonImageSetSynchronizationEnabled { get; set; }
Property Value
- bool:
trueto set the DefaultImageSet property to a value that matches CurrentTheme; otherwise,falseto allow the property to be manually changed. The default value istrue.
IsDarkThemeActive
Gets if a dark theme is currently active.
public static bool IsDarkThemeActive { get; }
Property Value
- bool:
trueif a dark theme is currently active; otherwisefalse.
Methods
Manage(IHighlightingStyleRegistry)
Begins managing the given IHighlightingStyleRegistry.
public static void Manage(IHighlightingStyleRegistry registry)
| Parameter | Type | Description |
|---|---|---|
| registry | IHighlightingStyleRegistry | The IHighlightingStyleRegistry to manage. |
Remarks
The AmbientHighlightingStyleRegistry is managed by default.
See Also
Unmanage(IHighlightingStyleRegistry)
Stops managing the given IHighlightingStyleRegistry.
public static void Unmanage(IHighlightingStyleRegistry registry)
| Parameter | Type | Description |
|---|---|---|
| registry | IHighlightingStyleRegistry | The IHighlightingStyleRegistry to manage. |