C# 클래스 MarkDownEditor.View.MvvmTextEditor

Class that inherits from the AvalonEdit TextEditor control to enable MVVM interaction.
상속: ICSharpCode.AvalonEdit.TextEditor, INotifyPropertyChanged
파일 보기 프로젝트 열기: chenguanzhou/MarkDownEditor

공개 프로퍼티들

프로퍼티 타입 설명
CanRedoProperty System.Windows.DependencyProperty
CanUndoProperty System.Windows.DependencyProperty
CaretOffsetProperty System.Windows.DependencyProperty
HighlightCurrentLineProperty System.Windows.DependencyProperty
RulerPositionProperty System.Windows.DependencyProperty
ScrollOffsetRatioProperty System.Windows.DependencyProperty
ScrollToSelectionStartProperty System.Windows.DependencyProperty
SelectionLengthProperty System.Windows.DependencyProperty
SelectionStartProperty System.Windows.DependencyProperty
ShowColumnRulerProperty System.Windows.DependencyProperty
ShowEndOfLineProperty System.Windows.DependencyProperty
ShowSpacesProperty System.Windows.DependencyProperty
ShowTabsProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
MvvmTextEditor ( ) : ICSharpCode.AvalonEdit

Default constructor to set up event handlers.

RaisePropertyChanged ( string info ) : void
TextArea_SelectionChanged ( object sender, EventArgs e ) : void

Event handler to update properties based upon the selection changed event.

보호된 메소드들

메소드 설명
OnScrollChanged ( object sender, RoutedEventArgs e ) : void
OnTextChanged ( EventArgs e ) : void

Override of OnTextChanged event.

비공개 메소드들

메소드 설명
Caret_PositionChanged ( object sender, EventArgs e ) : void
HighlightCurrentLineChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs ea ) : void
RulerPositionChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs ea ) : void
ShowColumnRulerChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs ea ) : void
ShowEndOfLineChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs ea ) : void
ShowSpacesChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs ea ) : void
ShowTabsChanged ( DependencyObject source, System.Windows.DependencyPropertyChangedEventArgs ea ) : void

메소드 상세

MvvmTextEditor() 공개 메소드

Default constructor to set up event handlers.
public MvvmTextEditor ( ) : ICSharpCode.AvalonEdit
리턴 ICSharpCode.AvalonEdit

OnScrollChanged() 보호된 메소드

protected OnScrollChanged ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
리턴 void

OnTextChanged() 보호된 메소드

Override of OnTextChanged event.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs
리턴 void

RaisePropertyChanged() 공개 메소드

public RaisePropertyChanged ( string info ) : void
info string
리턴 void

TextArea_SelectionChanged() 공개 메소드

Event handler to update properties based upon the selection changed event.
public TextArea_SelectionChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

프로퍼티 상세

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

DependencyProperty for the TextEditor CanUndo property.
public static DependencyProperty,System.Windows CanRedoProperty
리턴 System.Windows.DependencyProperty

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

DependencyProperty for the TextEditor CanUndo property.
public static DependencyProperty,System.Windows CanUndoProperty
리턴 System.Windows.DependencyProperty

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

DependencyProperty for the CaretOffset binding.
public static DependencyProperty,System.Windows CaretOffsetProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows HighlightCurrentLineProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows RulerPositionProperty
리턴 System.Windows.DependencyProperty

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

DependencyProperty for the ScrollOffsetRatio binding.
public static DependencyProperty,System.Windows ScrollOffsetRatioProperty
리턴 System.Windows.DependencyProperty

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

DependencyProperty for the ShouldReload binding.
public static DependencyProperty,System.Windows ScrollToSelectionStartProperty
리턴 System.Windows.DependencyProperty

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

DependencyProperty for the TextEditor SelectionLength property.
public static DependencyProperty,System.Windows SelectionLengthProperty
리턴 System.Windows.DependencyProperty

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

DependencyProperty for the TextEditor SelectionStart property.
public static DependencyProperty,System.Windows SelectionStartProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ShowColumnRulerProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ShowEndOfLineProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ShowSpacesProperty
리턴 System.Windows.DependencyProperty

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

public static DependencyProperty,System.Windows ShowTabsProperty
리턴 System.Windows.DependencyProperty