How to move the cursor to a specific position in a specific line in ScintillaNet control?

血红的双手。 提交于 2019-12-12 04:39:40

问题


I need to move the cursor to a desired position of a certain line by code, any ideas which could get that to work will be appreciated.


回答1:


Is this what you are looking for?

SCI_GOTOLINE(int line) This removes any selection and sets the caret at the start of line number line and scrolls the view (if needed) to make it visible. The anchor position is set the same as the current position. If line is outside the lines in the document (first line is 0), the line set is the first or last.

Taken from http://www.scintilla.org/ScintillaDoc.html



来源:https://stackoverflow.com/questions/10675217/how-to-move-the-cursor-to-a-specific-position-in-a-specific-line-in-scintillanet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!