C# Class ICSharpCode.AvalonEdit.Editing.EditingCommandHandler

We re-use the CommandBinding and InputBinding instances between multiple text areas, so this class is static.
ファイルを表示 Open project: kjk/kjkpub Class Usage Examples

Public Methods

Method Description
Create ( TextArea textArea ) : ICSharpCode.AvalonEdit.Editing.TextAreaInputHandler

Creates a new TextAreaInputHandler for the text area.

Private Methods

Method Description
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.

Method Details

Create() public static method

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