Thank you for your kind words first. To access all text from the current document you can use:
string alltext = this.syntaxEditor.Document.CurrentSnapshot.GetText();
Also you can get a particular line then get its text with:
string lineText = this.syntaxEditor.Document.CurrentSnapshot.GetLineFromPosition(this.syntaxEditor.CaretPosition.Index).GetText();
string line25Text = this.syntaxEditor.Document.CurrentSnapshot.GetLineFromLineNumber(25).GetText();
Ropes are internal structures for now. However, if certain demand requires them to be more visible we will take it into consideration. We will be glad to receive any feedback regarding the usage of this component.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.