Table of Contents

Class VisualTheme

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

Represents a single color theme.

public class VisualTheme : IVisualTheme, IDisposable
Inheritance
VisualTheme
Implements
Derived

Constructors

VisualTheme()

Initailizes new instance of ColorTheme with default settings.

VisualTheme(string, bool, MediaFont, ILexStyles)

Initializes new instance of ColorTheme with given parameters.

Properties

Font

Gets or sets the font used for the color theme.

ImagesColor

Gets or sets the type of background (light or dark) for the color theme.

this[string]

Specifies an Item indexer that uses the name of the LexStyle as an index.

LexStyles

Gets or sets the LexStyle array used for the color theme.

LineStyles

Gets or sets the IEditLineStyle array used for the color theme.

Name

Gets or sets the name of the color theme.

ReadOnly

Gets or sets a bool value that indicates whether or not the color theme should be modified.

Methods

ApplyLexStylesToEdit(TextEditor)

Assigns only lex style properties to a given TextEditor according to values stored in the IVisualTheme.

ApplyToCodeCompletionBox(ICodeCompletionBox)

Assigns color teme properties to a given ICodeCompletionBox according to values stored in the IVisualTheme.

ApplyToCodeCompletionButton(ICodeCompletionButton)

Assigns color teme properties to a given ICodeCompletionButton according to values stored in the IVisualTheme.

ApplyToCodeCompletionHint(ICodeCompletionHint)

Assigns color teme properties to a given ICodeCompletionHint according to values stored in the IVisualTheme.

ApplyToEdit(TextEditor)

Assigns color teme properties to a given TextEditor according to values stored in the IVisualTheme.

Assign(IVisualTheme)

Copies the content from another IVisualTheme object.

Dispose()

Release resources of the IVisualTheme object.

Dispose(bool)
LoadFromEdit(TextEditor)

Changes values stored in the IVisualTheme accordingly to property values of TextEditor control.

OnFontChanged()
OnLexStylesChanged()
OnNameChanged()
OnReadonlyChanged()