Get current text location from AvalonEdit

Returns the current TextLocation fron the AvalonEdit control:

int offset = editorInput.AvalonEditor.CaretOffset;
TextLocation loc = editorInput.AvalonEditor.Document.GetLocation(offset);      

Werbung



comments powered by Disqus

Copyright Dunkel & Iwer GbR | Datenschutzerklärung | Impressum