C# 클래스 ICSharpCode.AvalonEdit.Editing.EditingCommandHandler

We re-use the CommandBinding and InputBinding instances between multiple text areas, so this class is static.
파일 보기 프로젝트 열기: kjk/kjkpub 1 사용 예제들

공개 메소드들

메소드 설명
Create ( TextArea textArea ) : ICSharpCode.AvalonEdit.Editing.TextAreaInputHandler

Creates a new TextAreaInputHandler for the text area.

비공개 메소드들

메소드 설명
AddBinding ( ICommand command, ModifierKeys modifiers, Key key, ExecutedRoutedEventHandler handler ) : void
CanCutOrCopy ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
CanDelete ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
CanPaste ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
ConvertCase ( string>.Func transformText, object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
ConvertSpacesToTabs ( TextArea textArea, ISegment segment ) : void
ConvertTabsToSpaces ( TextArea textArea, ISegment segment ) : void
CopySelectedText ( TextArea textArea ) : void
CopyWholeLine ( TextArea textArea, DocumentLine line ) : void
EditingCommandHandler ( ) : System
GetTextArea ( object target ) : TextArea
InvertCase ( string text ) : string
OnConvertLeadingSpacesToTabs ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnConvertLeadingTabsToSpaces ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnConvertSpacesToTabs ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnConvertTabsToSpaces ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnConvertToLowerCase ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnConvertToTitleCase ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnConvertToUpperCase ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnCopy ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnCut ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnDelete ( System.Windows.Input.RoutedUICommand selectingCommand ) : ExecutedRoutedEventHandler
OnDeleteLine ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnEnter ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnIndentSelection ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnInvertCase ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnPaste ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnRemoveLeadingWhitespace ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnRemoveTrailingWhitespace ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnShiftTab ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
OnTab ( object target, System.Windows.Input.ExecutedRoutedEventArgs args ) : void
TransformSelectedLines ( DocumentLine>.Action transformLine, object target, System.Windows.Input.ExecutedRoutedEventArgs args, DefaultSegmentType defaultSegmentType ) : void

Calls transformLine on all lines in the selected range. transformLine needs to handle read-only segments!

TransformSelectedSegments ( ISegment>.Action transformSegment, object target, System.Windows.Input.ExecutedRoutedEventArgs args, DefaultSegmentType defaultSegmentType ) : void

Calls transformLine on all writable segment in the selected range.

메소드 상세

Create() 공개 정적인 메소드

Creates a new TextAreaInputHandler for the text area.
public static Create ( TextArea textArea ) : ICSharpCode.AvalonEdit.Editing.TextAreaInputHandler
textArea TextArea
리턴 ICSharpCode.AvalonEdit.Editing.TextAreaInputHandler