Class CodeEditor
Editor control for code.
public class CodeEditor : TextEditor, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, ITextEditorComponent, IServiceProvider, IWeakEventListener
- Inheritance
-
TextEditorCodeEditor
- Implements
-
ITextEditorComponent
- Inherited Members
-
TextEditor.DocumentPropertyTextEditor.OptionsPropertyTextEditor.SyntaxHighlightingPropertyTextEditor.WordWrapPropertyTextEditor.IsReadOnlyPropertyTextEditor.IsModifiedPropertyTextEditor.ShowLineNumbersPropertyTextEditor.LineNumbersForegroundPropertyTextEditor.EncodingPropertyTextEditor.PreviewMouseHoverEventTextEditor.MouseHoverEventTextEditor.PreviewMouseHoverStoppedEventTextEditor.MouseHoverStoppedEventTextEditor.HorizontalScrollBarVisibilityPropertyTextEditor.VerticalScrollBarVisibilityPropertyTextEditor.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.DocumentTextEditor.OptionsTextEditor.TextTextEditor.TextAreaTextEditor.SyntaxHighlightingTextEditor.WordWrapTextEditor.IsReadOnlyTextEditor.IsModifiedTextEditor.ShowLineNumbersTextEditor.LineNumbersForegroundTextEditor.CanRedoTextEditor.CanUndoTextEditor.ExtentHeightTextEditor.ExtentWidthTextEditor.ViewportHeightTextEditor.ViewportWidthTextEditor.VerticalOffsetTextEditor.HorizontalOffsetTextEditor.SelectedTextTextEditor.CaretOffsetTextEditor.SelectionStartTextEditor.SelectionLengthTextEditor.LineCountTextEditor.EncodingTextEditor.HorizontalScrollBarVisibilityTextEditor.VerticalScrollBarVisibilityTextEditor.DocumentChangedTextEditor.OptionChangedTextEditor.TextChangedTextEditor.PreviewMouseHoverTextEditor.MouseHoverTextEditor.PreviewMouseHoverStoppedTextEditor.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
CalledLineProperty
Identifies the CalledLine dependency property.
public static readonly DependencyProperty CalledLineProperty
Field Value
CaretPositionProperty
Identifies the CaretPosition dependency property.
public static readonly DependencyProperty CaretPositionProperty
Field Value
EditorOptionsProperty
Identifies the EditorOptions dependency property.
public static readonly DependencyProperty EditorOptionsProperty
Field Value
ExecutingLineProperty
Identifies the ExecutingLine dependency property.
public static readonly DependencyProperty ExecutingLineProperty
Field Value
ResetUndoStackRequestedProperty
Identifies the ResetUndoStackRequestedProperty dependency property.
public static readonly DependencyProperty ResetUndoStackRequestedProperty
Field Value
SelectionsProperty
Identifies the Selections dependency property.
public static readonly DependencyProperty SelectionsProperty
Field Value
TextSourceProperty
Identifies the TextSource dependency property.
public static readonly DependencyProperty TextSourceProperty
Field Value
Properties
BreakPoints
Gets or sets the break points.
public BreakPointCollection BreakPoints { get; set; }
Property Value
CalledLine
Gets or sets the called line.
public int CalledLine { get; set; }
Property Value
CaretPosition
Gets or sets the caret position.
public TextPosition CaretPosition { get; set; }
Property Value
EditorOptions
Gets or sets the options for the editor.
public CodeEditorOptions EditorOptions { get; set; }
Property Value
ExecutingLine
Gets or sets the executing line.
public int ExecutingLine { get; set; }
Property Value
ResetUndoStackRequested
Gets or sets a value indicating whether a undo stack reset is requested.
public bool ResetUndoStackRequested { get; set; }
Property Value
Selections
Gets or sets the selections.
public ObservableCollection<TextSegment> Selections { get; set; }
Property Value
TextSource
Gets or sets the source for the text.
public string TextSource { get; set; }
Property Value
Methods
OnTextChanged(EventArgs)
Raises the ICSharpCode.AvalonEdit.TextEditor.TextChanged event.
protected override void OnTextChanged(EventArgs e)
Parameters
e
EventArgsEvent arguments.