Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要通过代码将光标移动到某一行的所需位置,任何可以使其工作的想法将不胜感激。
这是你想要的?
SCI_GOTOLINE(int line)这将删除任何选择并将插入符号设置在行号行的开头并滚动视图(如果需要)使其可见。锚点位置设置为与当前位置相同。如果行在文档中的行之外(第一行为 0),则行集是第一行或最后一行。
取自http://www.scintilla.org/ScintillaDoc.html