The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I'd like to set the top line (the first visible line), the same way that a ListBox do with topindex.
EditLocationRange location = editControl1.Find(new EditLocation(1,1), str, false);
editControl1.GoToLineChar(location.Start);
editControl1.Select(location);
//something like
//editControl1.TopLine = location.Start;
Is there a way to achieve it? Could you integrate it into Edit?
Thanks,
Sebastien
ADAdministrator Syncfusion Team December 13, 2002 08:34 AM UTC
Hi Sebastien,
There is a property, ViewportFirstLine, in EditControl that could be used to achieve the function you want:
editControl1.ViewportFirstLine = location.Start.L;
editControl1.Redraw();
Please see if this works for your application. Thanks for choosing Essential Edit.
Syncfusion Technical Support
> Hi,
>
> I'd like to set the top line (the first visible line), the same way that a ListBox do with topindex.
>
> EditLocationRange location = editControl1.Find(new EditLocation(1,1), str, false);
> editControl1.GoToLineChar(location.Start);
> editControl1.Select(location);
>
> //something like
> //editControl1.TopLine = location.Start;
>
> Is there a way to achieve it? Could you integrate it into Edit?
>
> Thanks,
> Sebastien