c# - Scintilla .NET editor. Position cursor at the first visible line -
i using scintilla .net text editor control (scintillanet.dll) display sql. using following command position caret cursor @ given line number. in example below, positioning caret cursor @ line 102 (0 based. grid displays 1-based line numbers.)
scintilla1.goto.line(102); //0 based
i'd text in viewport displayed @ top of screen shown below, first visible line
can please me identify how this?
update:
this looked promising..
scintilla1.lines.firstvisible.number = targetlinenumber;
but after executing, scintilla1.lines.firstvisible.number wasn't equal targetlinenumber , don't know interferring it.there hundreds of lines following targetlinenumber line.
Comments
Post a Comment