Table of Contents

Class CodeEditor

Namespace
Loehnert.Lisrt.Scripting.Editor.Controls
Assembly
Loehnert.Lisrt.Scripting.dll

Editor control for code.

public class CodeEditor : TextEditor, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, ITextEditorComponent, IServiceProvider, IWeakEventListener
Inheritance
TextEditor
CodeEditor
Implements
ITextEditorComponent
Inherited Members
TextEditor.DocumentProperty
TextEditor.OptionsProperty
TextEditor.SyntaxHighlightingProperty
TextEditor.WordWrapProperty
TextEditor.IsReadOnlyProperty
TextEditor.IsModifiedProperty
TextEditor.ShowLineNumbersProperty
TextEditor.LineNumbersForegroundProperty
TextEditor.EncodingProperty
TextEditor.PreviewMouseHoverEvent
TextEditor.MouseHoverEvent
TextEditor.PreviewMouseHoverStoppedEvent
TextEditor.MouseHoverStoppedEvent
TextEditor.HorizontalScrollBarVisibilityProperty
TextEditor.VerticalScrollBarVisibilityProperty
TextEditor.OnCreateAutomationPeer()
TextEditor.OnApplyTemplate()
TextEditor.CreateColorizer(IHighlightingDefinition)
TextEditor.BeginChange()
TextEditor.Copy()
TextEditor.Cut()
TextEditor.DeclareChangeBlock()
TextEditor.Delete()
TextEditor.EndChange()
TextEditor.LineDown()
TextEditor.LineLeft()
TextEditor.LineRight()
TextEditor.LineUp()
TextEditor.PageDown()
TextEditor.PageUp()
TextEditor.PageLeft()
TextEditor.PageRight()
TextEditor.Paste()
TextEditor.Redo()
TextEditor.ScrollToEnd()
TextEditor.ScrollToHome()
TextEditor.SelectAll()
TextEditor.Undo()
TextEditor.Clear()
TextEditor.Document
TextEditor.Options
TextEditor.Text
TextEditor.TextArea
TextEditor.SyntaxHighlighting
TextEditor.WordWrap
TextEditor.IsReadOnly
TextEditor.IsModified
TextEditor.ShowLineNumbers
TextEditor.LineNumbersForeground
TextEditor.CanRedo
TextEditor.CanUndo
TextEditor.ExtentHeight
TextEditor.ExtentWidth
TextEditor.ViewportHeight
TextEditor.ViewportWidth
TextEditor.VerticalOffset
TextEditor.HorizontalOffset
TextEditor.SelectedText
TextEditor.CaretOffset
TextEditor.SelectionStart
TextEditor.SelectionLength
TextEditor.LineCount
TextEditor.Encoding
TextEditor.HorizontalScrollBarVisibility
TextEditor.VerticalScrollBarVisibility
TextEditor.DocumentChanged
TextEditor.OptionChanged
TextEditor.TextChanged
TextEditor.PreviewMouseHover
TextEditor.MouseHover
TextEditor.PreviewMouseHoverStopped
TextEditor.MouseHoverStopped

Constructors

CodeEditor()

Initializes a new instance of the CodeEditor class.

public CodeEditor()

Fields

BreakPointsProperty

Identifies the BreakPoints dependency property.

public static readonly DependencyProperty BreakPointsProperty

Field Value

DependencyProperty

CalledLineProperty

Identifies the CalledLine dependency property.

public static readonly DependencyProperty CalledLineProperty

Field Value

DependencyProperty

CaretPositionProperty

Identifies the CaretPosition dependency property.

public static readonly DependencyProperty CaretPositionProperty

Field Value

DependencyProperty

EditorOptionsProperty

Identifies the EditorOptions dependency property.

public static readonly DependencyProperty EditorOptionsProperty

Field Value

DependencyProperty

ExecutingLineProperty

Identifies the ExecutingLine dependency property.

public static readonly DependencyProperty ExecutingLineProperty

Field Value

DependencyProperty

ResetUndoStackRequestedProperty

Identifies the ResetUndoStackRequestedProperty dependency property.

public static readonly DependencyProperty ResetUndoStackRequestedProperty

Field Value

DependencyProperty

SelectionsProperty

Identifies the Selections dependency property.

public static readonly DependencyProperty SelectionsProperty

Field Value

DependencyProperty

TextSourceProperty

Identifies the TextSource dependency property.

public static readonly DependencyProperty TextSourceProperty

Field Value

DependencyProperty

Properties

BreakPoints

Gets or sets the break points.

public BreakPointCollection BreakPoints { get; set; }

Property Value

BreakPointCollection

CalledLine

Gets or sets the called line.

public int CalledLine { get; set; }

Property Value

int

CaretPosition

Gets or sets the caret position.

public TextPosition CaretPosition { get; set; }

Property Value

TextPosition

EditorOptions

Gets or sets the options for the editor.

public CodeEditorOptions EditorOptions { get; set; }

Property Value

CodeEditorOptions

ExecutingLine

Gets or sets the executing line.

public int ExecutingLine { get; set; }

Property Value

int

ResetUndoStackRequested

Gets or sets a value indicating whether a undo stack reset is requested.

public bool ResetUndoStackRequested { get; set; }

Property Value

bool

Selections

Gets or sets the selections.

public ObservableCollection<TextSegment> Selections { get; set; }

Property Value

ObservableCollection<TextSegment>

TextSource

Gets or sets the source for the text.

public string TextSource { get; set; }

Property Value

string

Methods

OnTextChanged(EventArgs)

Raises the ICSharpCode.AvalonEdit.TextEditor.TextChanged event.

protected override void OnTextChanged(EventArgs e)

Parameters

e EventArgs

Event arguments.