AvalonEdit
AllowCaretOutsideSelection Method
NamespacesICSharpCode.AvalonEdit.EditingTextAreaAllowCaretOutsideSelection()()()()
Temporarily allows positioning the caret outside the selection. Dispose the returned IDisposable to revert the allowance.
Declaration Syntax
C#Visual BasicVisual C++
public IDisposable AllowCaretOutsideSelection()
Public Function AllowCaretOutsideSelection As IDisposable
public:
IDisposable^ AllowCaretOutsideSelection()
Remarks
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.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238