C# 클래스 ICSharpCode.AvalonEdit.TextEditor

파일 보기 프로젝트 열기: gilgame/SEWorkbench 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DocumentProperty System.Windows.DependencyProperty
HorizontalScrollBarVisibilityProperty System.Windows.DependencyProperty
IsModifiedProperty System.Windows.DependencyProperty
IsReadOnlyProperty System.Windows.DependencyProperty
LineNumbersForegroundProperty System.Windows.DependencyProperty
MouseHoverEvent System.Windows.RoutedEvent
MouseHoverStoppedEvent System.Windows.RoutedEvent
OptionsProperty System.Windows.DependencyProperty
PreviewMouseHoverEvent System.Windows.RoutedEvent
PreviewMouseHoverStoppedEvent System.Windows.RoutedEvent
ShowLineNumbersProperty System.Windows.DependencyProperty
SyntaxHighlightingProperty System.Windows.DependencyProperty
VerticalScrollBarVisibilityProperty System.Windows.DependencyProperty
WordWrapProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
CanExecute bool
Execute void
GetDocument ICSharpCode.AvalonEdit.Document.TextDocument
HandleIsOriginalChanged bool
IServiceProvider object
IWeakEventListener bool
OnDocumentChanged void
OnDocumentChanged void
OnIsModifiedChanged void
OnIsReadOnlyChanged void
OnLineNumbersForegroundChanged void
OnOptionsChanged void
OnOptionsChanged void
OnShowLineNumbersChanged void
OnSyntaxHighlightingChanged void
OnSyntaxHighlightingChanged void
SetCurrentValue void
TextArea_SelectionChanged void
TextEditor System

공개 메소드들

메소드 설명
AppendText ( string textData ) : void

Appends text to the end of the document.

BeginChange ( ) : void

Begins a group of document changes.

Clear ( ) : void

Clears the text.

Copy ( ) : void

Copies the current selection to the clipboard.

Cut ( ) : void

Removes the current selection and copies it to the clipboard.

DeclareChangeBlock ( ) : IDisposable

Begins a group of document changes and returns an object that ends the group of document changes when it is disposed.

EndChange ( ) : void

Ends the current group of document changes.

GetPositionFromPoint ( Point point ) : TextViewPosition?

Gets the text view position from a point inside the editor.

LineDown ( ) : void

Scrolls one line down.

LineLeft ( ) : void

Scrolls to the left.

LineRight ( ) : void

Scrolls to the right.

LineUp ( ) : void

Scrolls one line up.

Load ( System.Stream stream ) : void

Loads the text from the stream, auto-detecting the encoding.

This method sets IsModified to false.

Load ( string fileName ) : void

Loads the text from the stream, auto-detecting the encoding.

OnApplyTemplate ( ) : void

Is called after the template was applied.

PageDown ( ) : void

Scrolls one page down.

PageLeft ( ) : void

Scrolls one page left.

PageRight ( ) : void

Scrolls one page right.

PageUp ( ) : void

Scrolls one page up.

Paste ( ) : void

Pastes the clipboard content.

Redo ( ) : bool

Redoes the most recent undone command.

Save ( System.Stream stream ) : void

Saves the text to the stream.

This method sets IsModified to false.

Save ( string fileName ) : void

Saves the text to the file.

ScrollTo ( int line, int column ) : void

Scrolls to the specified line/column. This method requires that the TextEditor was already assigned a size (WPF layout must have run prior).

ScrollToEnd ( ) : void

Scrolls to the end of the document.

ScrollToHome ( ) : void

Scrolls to the start of the document.

ScrollToHorizontalOffset ( double offset ) : void

Scrolls to the specified position in the document.

ScrollToLine ( int line ) : void

Scrolls to the specified line. This method requires that the TextEditor was already assigned a size (WPF layout must have run prior).

ScrollToVerticalOffset ( double offset ) : void

Scrolls to the specified position in the document.

Select ( int start, int length ) : void

Selects the specified text section.

SelectAll ( ) : void

Selects the entire text.

Undo ( ) : bool

Undoes the most recent command.

보호된 메소드들

메소드 설명
CreateColorizer ( IHighlightingDefinition highlightingDefinition ) : IVisualLineTransformer

Creates the highlighting colorizer for the specified highlighting definition. Allows derived classes to provide custom colorizer implementations for special highlighting definitions.

OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
OnDocumentChanged ( EventArgs e ) : void

Raises the DocumentChanged event.

OnGotKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
OnMouseRightButtonDown ( MouseButtonEventArgs e ) : void
OnOptionChanged ( PropertyChangedEventArgs e ) : void

Raises the OptionChanged event.

OnTextChanged ( EventArgs e ) : void

Raises the TextChanged event.

ReceiveWeakEvent ( Type managerType, object sender, EventArgs e ) : bool
TextEditor ( TextArea textArea ) : System

Creates a new TextEditor instance.

비공개 메소드들

메소드 설명
CanExecute ( RoutedUICommand command ) : bool
Execute ( RoutedUICommand command ) : void
GetDocument ( ) : TextDocument
HandleIsOriginalChanged ( PropertyChangedEventArgs e ) : bool
IServiceProvider ( Type serviceType ) : object
IWeakEventListener ( Type managerType, object sender, EventArgs e ) : bool
OnDocumentChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnDocumentChanged ( TextDocument oldValue, TextDocument newValue ) : void
OnIsModifiedChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnIsReadOnlyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnLineNumbersForegroundChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnOptionsChanged ( DependencyObject dp, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnOptionsChanged ( TextEditorOptions oldValue, TextEditorOptions newValue ) : void
OnShowLineNumbersChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSyntaxHighlightingChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSyntaxHighlightingChanged ( IHighlightingDefinition newValue ) : void
SetCurrentValue ( DependencyProperty property, object value ) : void
TextArea_SelectionChanged ( object sender, EventArgs e ) : void
TextEditor ( ) : System

메소드 상세

AppendText() 공개 메소드

Appends text to the end of the document.
public AppendText ( string textData ) : void
textData string
리턴 void

BeginChange() 공개 메소드

Begins a group of document changes.
public BeginChange ( ) : void
리턴 void

Clear() 공개 메소드

Clears the text.
public Clear ( ) : void
리턴 void

Copy() 공개 메소드

Copies the current selection to the clipboard.
public Copy ( ) : void
리턴 void

CreateColorizer() 보호된 메소드

Creates the highlighting colorizer for the specified highlighting definition. Allows derived classes to provide custom colorizer implementations for special highlighting definitions.
protected CreateColorizer ( IHighlightingDefinition highlightingDefinition ) : IVisualLineTransformer
highlightingDefinition IHighlightingDefinition
리턴 IVisualLineTransformer

Cut() 공개 메소드

Removes the current selection and copies it to the clipboard.
public Cut ( ) : void
리턴 void

DeclareChangeBlock() 공개 메소드

Begins a group of document changes and returns an object that ends the group of document changes when it is disposed.
public DeclareChangeBlock ( ) : IDisposable
리턴 IDisposable

EndChange() 공개 메소드

Ends the current group of document changes.
public EndChange ( ) : void
리턴 void

GetPositionFromPoint() 공개 메소드

Gets the text view position from a point inside the editor.
public GetPositionFromPoint ( Point point ) : TextViewPosition?
point Point The position, relative to top left /// corner of TextEditor control
리턴 TextViewPosition?

LineDown() 공개 메소드

Scrolls one line down.
public LineDown ( ) : void
리턴 void

LineLeft() 공개 메소드

Scrolls to the left.
public LineLeft ( ) : void
리턴 void

LineRight() 공개 메소드

Scrolls to the right.
public LineRight ( ) : void
리턴 void

LineUp() 공개 메소드

Scrolls one line up.
public LineUp ( ) : void
리턴 void

Load() 공개 메소드

Loads the text from the stream, auto-detecting the encoding.
This method sets IsModified to false.
public Load ( System.Stream stream ) : void
stream System.Stream
리턴 void

Load() 공개 메소드

Loads the text from the stream, auto-detecting the encoding.
public Load ( string fileName ) : void
fileName string
리턴 void

OnApplyTemplate() 공개 메소드

Is called after the template was applied.
public OnApplyTemplate ( ) : void
리턴 void

OnCreateAutomationPeer() 보호된 메소드

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
리턴 System.Windows.Automation.Peers.AutomationPeer

OnDocumentChanged() 보호된 메소드

Raises the DocumentChanged event.
protected OnDocumentChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnGotKeyboardFocus() 보호된 메소드

protected OnGotKeyboardFocus ( KeyboardFocusChangedEventArgs e ) : void
e KeyboardFocusChangedEventArgs
리턴 void

OnMouseRightButtonDown() 보호된 메소드

protected OnMouseRightButtonDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs
리턴 void

OnOptionChanged() 보호된 메소드

Raises the OptionChanged event.
protected OnOptionChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs
리턴 void

OnTextChanged() 보호된 메소드

Raises the TextChanged event.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

PageDown() 공개 메소드

Scrolls one page down.
public PageDown ( ) : void
리턴 void

PageLeft() 공개 메소드

Scrolls one page left.
public PageLeft ( ) : void
리턴 void

PageRight() 공개 메소드

Scrolls one page right.
public PageRight ( ) : void
리턴 void

PageUp() 공개 메소드

Scrolls one page up.
public PageUp ( ) : void
리턴 void

Paste() 공개 메소드

Pastes the clipboard content.
public Paste ( ) : void
리턴 void

ReceiveWeakEvent() 보호된 메소드

protected ReceiveWeakEvent ( Type managerType, object sender, EventArgs e ) : bool
managerType System.Type
sender object
e System.EventArgs
리턴 bool

Redo() 공개 메소드

Redoes the most recent undone command.
public Redo ( ) : bool
리턴 bool

Save() 공개 메소드

Saves the text to the stream.
This method sets IsModified to false.
public Save ( System.Stream stream ) : void
stream System.Stream
리턴 void

Save() 공개 메소드

Saves the text to the file.
public Save ( string fileName ) : void
fileName string
리턴 void

ScrollTo() 공개 메소드

Scrolls to the specified line/column. This method requires that the TextEditor was already assigned a size (WPF layout must have run prior).
public ScrollTo ( int line, int column ) : void
line int
column int
리턴 void

ScrollToEnd() 공개 메소드

Scrolls to the end of the document.
public ScrollToEnd ( ) : void
리턴 void

ScrollToHome() 공개 메소드

Scrolls to the start of the document.
public ScrollToHome ( ) : void
리턴 void

ScrollToHorizontalOffset() 공개 메소드

Scrolls to the specified position in the document.
public ScrollToHorizontalOffset ( double offset ) : void
offset double
리턴 void

ScrollToLine() 공개 메소드

Scrolls to the specified line. This method requires that the TextEditor was already assigned a size (WPF layout must have run prior).
public ScrollToLine ( int line ) : void
line int
리턴 void

ScrollToVerticalOffset() 공개 메소드

Scrolls to the specified position in the document.
public ScrollToVerticalOffset ( double offset ) : void
offset double
리턴 void

Select() 공개 메소드

Selects the specified text section.
public Select ( int start, int length ) : void
start int
length int
리턴 void

SelectAll() 공개 메소드

Selects the entire text.
public SelectAll ( ) : void
리턴 void

TextEditor() 보호된 메소드

Creates a new TextEditor instance.
protected TextEditor ( TextArea textArea ) : System
textArea TextArea
리턴 System

Undo() 공개 메소드

Undoes the most recent command.
public Undo ( ) : bool
리턴 bool

프로퍼티 상세

DocumentProperty 공개적으로 정적으로 프로퍼티

Document property.
public static DependencyProperty,System.Windows DocumentProperty
리턴 System.Windows.DependencyProperty

HorizontalScrollBarVisibilityProperty 공개적으로 정적으로 프로퍼티

Dependency property for HorizontalScrollBarVisibility
public static DependencyProperty,System.Windows HorizontalScrollBarVisibilityProperty
리턴 System.Windows.DependencyProperty

IsModifiedProperty 공개적으로 정적으로 프로퍼티

Dependency property for IsModified
public static DependencyProperty,System.Windows IsModifiedProperty
리턴 System.Windows.DependencyProperty

IsReadOnlyProperty 공개적으로 정적으로 프로퍼티

IsReadOnly dependency property.
public static DependencyProperty,System.Windows IsReadOnlyProperty
리턴 System.Windows.DependencyProperty

LineNumbersForegroundProperty 공개적으로 정적으로 프로퍼티

LineNumbersForeground dependency property.
public static DependencyProperty,System.Windows LineNumbersForegroundProperty
리턴 System.Windows.DependencyProperty

MouseHoverEvent 공개적으로 정적으로 프로퍼티

The MouseHover event.
public static RoutedEvent,System.Windows MouseHoverEvent
리턴 System.Windows.RoutedEvent

MouseHoverStoppedEvent 공개적으로 정적으로 프로퍼티

The MouseHoverStopped event.
public static RoutedEvent,System.Windows MouseHoverStoppedEvent
리턴 System.Windows.RoutedEvent

OptionsProperty 공개적으로 정적으로 프로퍼티

Options property.
public static DependencyProperty,System.Windows OptionsProperty
리턴 System.Windows.DependencyProperty

PreviewMouseHoverEvent 공개적으로 정적으로 프로퍼티

The PreviewMouseHover event.
public static RoutedEvent,System.Windows PreviewMouseHoverEvent
리턴 System.Windows.RoutedEvent

PreviewMouseHoverStoppedEvent 공개적으로 정적으로 프로퍼티

The PreviewMouseHoverStopped event.
public static RoutedEvent,System.Windows PreviewMouseHoverStoppedEvent
리턴 System.Windows.RoutedEvent

ShowLineNumbersProperty 공개적으로 정적으로 프로퍼티

ShowLineNumbers dependency property.
public static DependencyProperty,System.Windows ShowLineNumbersProperty
리턴 System.Windows.DependencyProperty

SyntaxHighlightingProperty 공개적으로 정적으로 프로퍼티

The SyntaxHighlighting property.
public static DependencyProperty,System.Windows SyntaxHighlightingProperty
리턴 System.Windows.DependencyProperty

VerticalScrollBarVisibilityProperty 공개적으로 정적으로 프로퍼티

Dependency property for VerticalScrollBarVisibility
public static DependencyProperty,System.Windows VerticalScrollBarVisibilityProperty
리턴 System.Windows.DependencyProperty

WordWrapProperty 공개적으로 정적으로 프로퍼티

Word wrap dependency property.
public static DependencyProperty,System.Windows WordWrapProperty
리턴 System.Windows.DependencyProperty