Closed LaraSQP closed 4 years ago
I want to retrieve and restore the first/top visible line after an operation.
var place = fctb.PointToPlace( new Point( 0, 0 ) ); var line = place.iLine; fctb.Selection.Start = new Place( 0, line ); fctb.DoSelectionVisible();
I think that code should work but it does not.
I also tried Navigate( line) but this centers the line in the screen.
Navigate( line)
Thank you in advance. Amazing work.
Best way to restore top visible line - restore vertical scroll position:
var scroll = fctb.VerticalScroll.Value; ... fctb.VerticalScroll.Value = scroll; fctb.UpdateScrollbars();
Much appreciated.
I want to retrieve and restore the first/top visible line after an operation.
I think that code should work but it does not.
I also tried
Navigate( line)
but this centers the line in the screen.Thank you in advance. Amazing work.