Table of Contents

Class VisualTheme

Namespace
Alternet.Editor
Assembly
Alternet.Editor.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, Font, 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(ISyntaxEdit)

Assigns only lex style properties to a given ISyntaxEdit 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(ISyntaxEdit)

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

ApplyToScrollBar(ScrollBar)

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

ApplyToScrollingButton(IScrollingButton)

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

ApplyToSearchDialog(ISearchDialog)

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

ApplyToSplitButton(IScrollingButton)

Assigns color teme properties to a given IScrollingButton 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(ISyntaxEdit)

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

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