Posted 15 years ago
by Matt Kerchmar
Hello,
I am attempting to implement a "Go To Line" feature to mimic functionality in Visual Studio. In order to present the valid range of line numbers to the user in the dialog box (in the manner that Visual Studio does), it is necessary to determine the number of lines in the current document. This is possible in the Windows Forms version of Syntax Editor with the SyntaxEditor.Document.Lines.Count property. But I haven't been able to locate anything like this in the WPF version, nor have I been able to locate anything that would take its place.
Any suggestions would be spiffy.
Thanks,
Matt Kerchmar
I am attempting to implement a "Go To Line" feature to mimic functionality in Visual Studio. In order to present the valid range of line numbers to the user in the dialog box (in the manner that Visual Studio does), it is necessary to determine the number of lines in the current document. This is possible in the Windows Forms version of Syntax Editor with the SyntaxEditor.Document.Lines.Count property. But I haven't been able to locate anything like this in the WPF version, nor have I been able to locate anything that would take its place.
Any suggestions would be spiffy.
Thanks,
Matt Kerchmar