TopIndex or TopLine

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

1 Reply

AD Administrator 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

Loader.
Up arrow icon