Property | Type | Description | |
---|---|---|---|
DocumentProperty | |||
IndentationStrategyProperty | |||
OptionsProperty | |||
SelectionBorderProperty | |||
SelectionBrushProperty | |||
SelectionCornerRadiusProperty | |||
SelectionForegroundProperty |
Property | Type | Description | |
---|---|---|---|
ApplyScrollInfo | void | ||
EnsureSelectionValid | void | ||
GetDeletableSegments | ISegment[] | ||
IScrollInfo | |||
IScrollInfo | void | ||
IScrollInfo | void | ||
IWeakEventListener | bool | ||
OnDocumentChanged | void | ||
OnDocumentChanged | void | ||
OnDocumentChanged | void | ||
OnDocumentChanging | void | ||
OnOptionsChanged | void | ||
OnOptionsChanged | void | ||
OnTextCopied | void | ||
OnUpdateFinished | void | ||
OnUpdateStarted | void | ||
RemoveSelectedText | void | ||
ReplaceSelectionWithNewLine | void | ||
ReplaceSelectionWithText | void | ||
RequestSelectionValidation | void | ||
TextArea | System | ||
leftMargins_CollectionChanged | void |
Method | Description | |
---|---|---|
AllowCaretOutsideSelection ( ) : IDisposable |
Temporarily allows positioning the caret outside the selection. Dispose the returned IDisposable to revert the allowance. The text area only forces the caret to be inside the selection when other events have finished running (using the dispatcher), so you don't have to use this method for temporarily positioning the caret in event handlers. This method is only necessary if you want to run the WPF dispatcher, e.g. if you perform a drag'n'drop operation. |
|
ClearSelection ( ) : void |
Clears the current selection.
|
|
GetService ( |
Gets the requested service.
|
|
OnApplyTemplate ( ) : void | ||
PerformTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void |
Performs text input. This raises the TextEntering event, replaces the selection with the text, and then raises the TextEntered event.
|
|
PerformTextInput ( string text ) : void |
Performs text input. This raises the TextEntering event, replaces the selection with the text, and then raises the TextEntered event.
|
|
PopStackedInputHandler ( ICSharpCode.AvalonEdit.Editing.TextAreaStackedInputHandler inputHandler ) : void |
Pops the stacked input handler (and all input handlers above it). If inputHandler is not found in the currently stacked input handlers, or is null, this method does nothing. |
|
PushStackedInputHandler ( ICSharpCode.AvalonEdit.Editing.TextAreaStackedInputHandler inputHandler ) : void |
Pushes an input handler onto the list of stacked input handlers. |
Method | Description | |
---|---|---|
HitTestCore ( System.Windows.Media.PointHitTestParameters hitTestParameters ) : System.Windows.Media.HitTestResult | ||
OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void | ||
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void | ||
OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void | ||
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
OnOptionChanged ( |
Raises the OptionChanged event.
|
|
OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
OnPreviewKeyUp ( System.Windows.Input.KeyEventArgs e ) : void | ||
OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
OnTextEntered ( System.Windows.Input.TextCompositionEventArgs e ) : void |
Raises the TextEntered event.
|
|
OnTextEntering ( System.Windows.Input.TextCompositionEventArgs e ) : void |
Raises the TextEntering event.
|
|
OnTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void | ||
ReceiveWeakEvent ( |
||
TextArea ( TextView textView ) : System |
Creates a new TextArea instance.
|
Method | Description | |
---|---|---|
ApplyScrollInfo ( ) : void | ||
EnsureSelectionValid ( ) : void |
Code that updates only the caret but not the selection can cause confusion when keys like 'Delete' delete the (possibly invisible) selected text and not the text around the caret. So we'll ensure that the caret is inside the selection. (when the caret is not in the selection, we'll clear the selection) This method is invoked using the Dispatcher so that code may temporarily violate this rule (e.g. most 'extend selection' methods work by first setting the caret, then the selection), it's sufficient to fix it after any event handlers have run.
|
|
GetDeletableSegments ( ISegment segment ) : ISegment[] | ||
IScrollInfo ( System visual, |
||
IScrollInfo ( ) : void | ||
IScrollInfo ( double offset ) : void | ||
IWeakEventListener ( |
||
OnDocumentChanged ( |
||
OnDocumentChanged ( ICSharpCode.AvalonEdit.Document.DocumentChangeEventArgs e ) : void | ||
OnDocumentChanged ( |
||
OnDocumentChanging ( ) : void | ||
OnOptionsChanged ( |
||
OnOptionsChanged ( TextEditorOptions oldValue, TextEditorOptions newValue ) : void | ||
OnTextCopied ( |
||
OnUpdateFinished ( ) : void | ||
OnUpdateStarted ( ) : void | ||
RemoveSelectedText ( ) : void | ||
ReplaceSelectionWithNewLine ( ) : void | ||
ReplaceSelectionWithText ( string newText ) : void | ||
RequestSelectionValidation ( ) : void | ||
TextArea ( ) : System | ||
leftMargins_CollectionChanged ( object sender, |
public AllowCaretOutsideSelection ( ) : IDisposable | ||
return | IDisposable |
public GetService ( |
||
serviceType | ||
return | object |
protected HitTestCore ( System.Windows.Media.PointHitTestParameters hitTestParameters ) : System.Windows.Media.HitTestResult | ||
hitTestParameters | System.Windows.Media.PointHitTestParameters | |
return | System.Windows.Media.HitTestResult |
protected OnGotKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void | ||
e | System.Windows.Input.KeyboardFocusChangedEventArgs | |
return | void |
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | |
return | void |
protected OnKeyUp ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | |
return | void |
protected OnLostKeyboardFocus ( System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void | ||
e | System.Windows.Input.KeyboardFocusChangedEventArgs | |
return | void |
protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | |
return | void |
protected OnOptionChanged ( |
||
e | ||
return | void |
protected OnPreviewKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | |
return | void |
protected OnPreviewKeyUp ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | |
return | void |
protected OnPropertyChanged ( System.Windows.DependencyPropertyChangedEventArgs e ) : void | ||
e | System.Windows.DependencyPropertyChangedEventArgs | |
return | void |
protected OnTextEntered ( System.Windows.Input.TextCompositionEventArgs e ) : void | ||
e | System.Windows.Input.TextCompositionEventArgs | |
return | void |
protected OnTextEntering ( System.Windows.Input.TextCompositionEventArgs e ) : void | ||
e | System.Windows.Input.TextCompositionEventArgs | |
return | void |
protected OnTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void | ||
e | System.Windows.Input.TextCompositionEventArgs | |
return | void |
public PerformTextInput ( System.Windows.Input.TextCompositionEventArgs e ) : void | ||
e | System.Windows.Input.TextCompositionEventArgs | |
return | void |
public PerformTextInput ( string text ) : void | ||
text | string | |
return | void |
public PopStackedInputHandler ( ICSharpCode.AvalonEdit.Editing.TextAreaStackedInputHandler inputHandler ) : void | ||
inputHandler | ICSharpCode.AvalonEdit.Editing.TextAreaStackedInputHandler | |
return | void |
public PushStackedInputHandler ( ICSharpCode.AvalonEdit.Editing.TextAreaStackedInputHandler inputHandler ) : void | ||
inputHandler | ICSharpCode.AvalonEdit.Editing.TextAreaStackedInputHandler | |
return | void |
protected ReceiveWeakEvent ( |
||
managerType | ||
sender | object | |
e | ||
return | bool |
protected TextArea ( TextView textView ) : System | ||
textView | TextView | |
return | System |
public static DependencyProperty,System.Windows DocumentProperty | ||
return |
public static DependencyProperty,System.Windows IndentationStrategyProperty | ||
return |
public static DependencyProperty,System.Windows OptionsProperty | ||
return |
public static DependencyProperty,System.Windows SelectionBorderProperty | ||
return |
public static DependencyProperty,System.Windows SelectionBrushProperty | ||
return |
public static DependencyProperty,System.Windows SelectionCornerRadiusProperty | ||
return |