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 

what get

i'd text in viewport displayed @ top of screen shown below, first visible line

what want

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

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -