IScintillaGateway.cs 117 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582
  1. // NPP plugin platform for .Net v0.94.00 by Kasper B. Graversen etc.
  2. using System;
  3. using static Kbg.NppPluginNET.PluginInfrastructure.Win32;
  4. namespace Kbg.NppPluginNET.PluginInfrastructure
  5. {
  6. /// <summary>
  7. /// This it the plugin-writers primary interface to Notepad++/Scintilla.
  8. /// It takes away all the complexity with command numbers and Int-pointer casting.
  9. ///
  10. /// See http://www.scintilla.org/ScintillaDoc.html for further details.
  11. /// </summary>
  12. public interface IScintillaGateway
  13. {
  14. /// <summary>
  15. /// Change the Scintilla window handle for this Gateway
  16. /// and return the previous handle for potentially final updates.
  17. /// </summary>
  18. /// <param name="newHandle"></param>
  19. /// <returns></returns>
  20. IntPtr SetScintillaHandle(IntPtr newHandle);
  21. /// <summary>
  22. /// Switch the handle between main and second window handle.
  23. /// </summary>
  24. void SwitchScintillaHandle();
  25. /// <summary>
  26. /// Return the current Scintilla window handle
  27. /// </summary>
  28. /// <returns></returns>
  29. IntPtr GetScintillaHandle();
  30. IntPtr CurrentBufferID { get; set; }
  31. int GetSelectionLength();
  32. void AppendTextAndMoveCursor(string text);
  33. void InsertTextAndMoveCursor(string text);
  34. void SelectCurrentLine();
  35. void ClearSelectionToCursor();
  36. /// <summary>
  37. /// Get the current line from the current position
  38. /// </summary>
  39. int GetCurrentLineNumber();
  40. /// <summary>
  41. /// Get the scroll information for the current Scintilla window.
  42. /// </summary>
  43. /// <param name="mask">Arguments for the scroll information such as tracking</param>
  44. /// <param name="scrollBar">Which scroll bar information are you looking for</param>
  45. /// <returns>A ScrollInfo struct with information of the current scroll state</returns>
  46. ScrollInfo GetScrollInfo(ScrollInfoMask mask = ScrollInfoMask.SIF_ALL, ScrollInfoBar scrollBar = ScrollInfoBar.SB_BOTH);
  47. /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
  48. /// <summary>Add text to the document at current position. (Scintilla feature 2001)</summary>
  49. unsafe void AddText(int length, string text);
  50. /// <summary>Add array of cells to document. (Scintilla feature 2002)</summary>
  51. unsafe void AddStyledText(int length, Cells c);
  52. /// <summary>Insert string at a position. (Scintilla feature 2003)</summary>
  53. unsafe void InsertText(Position pos, string text);
  54. /// <summary>Change the text that is being inserted in response to SC_MOD_INSERTCHECK (Scintilla feature 2672)</summary>
  55. unsafe void ChangeInsertion(int length, string text);
  56. /// <summary>Delete all text in the document. (Scintilla feature 2004)</summary>
  57. void ClearAll();
  58. /// <summary>Delete a range of text in the document. (Scintilla feature 2645)</summary>
  59. void DeleteRange(Position pos, int deleteLength);
  60. /// <summary>Set all style bytes to 0, remove all folding information. (Scintilla feature 2005)</summary>
  61. void ClearDocumentStyle();
  62. /// <summary>Returns the number of bytes in the document. (Scintilla feature 2006)</summary>
  63. int GetLength();
  64. /// <summary>Returns the character byte at the position. (Scintilla feature 2007)</summary>
  65. int GetCharAt(Position pos);
  66. /// <summary>Returns the position of the caret. (Scintilla feature 2008)</summary>
  67. Position GetCurrentPos();
  68. /// <summary>Returns the position of the opposite end of the selection to the caret. (Scintilla feature 2009)</summary>
  69. Position GetAnchor();
  70. /// <summary>Returns the style byte at the position. (Scintilla feature 2010)</summary>
  71. int GetStyleAt(Position pos);
  72. /// <summary>Redoes the next action on the undo history. (Scintilla feature 2011)</summary>
  73. void Redo();
  74. /// <summary>
  75. /// Choose between collecting actions into the undo
  76. /// history and discarding them.
  77. /// (Scintilla feature 2012)
  78. /// </summary>
  79. void SetUndoCollection(bool collectUndo);
  80. /// <summary>Select all the text in the document. (Scintilla feature 2013)</summary>
  81. void SelectAll();
  82. /// <summary>
  83. /// Remember the current position in the undo history as the position
  84. /// at which the document was saved.
  85. /// (Scintilla feature 2014)
  86. /// </summary>
  87. void SetSavePoint();
  88. /// <summary>
  89. /// Retrieve a buffer of cells.
  90. /// Returns the number of bytes in the buffer not including terminating NULs.
  91. /// (Scintilla feature 2015)
  92. /// </summary>
  93. int GetStyledText(TextRange tr);
  94. /// <summary>Are there any redoable actions in the undo history? (Scintilla feature 2016)</summary>
  95. bool CanRedo();
  96. /// <summary>Retrieve the line number at which a particular marker is located. (Scintilla feature 2017)</summary>
  97. int MarkerLineFromHandle(int handle);
  98. /// <summary>Delete a marker. (Scintilla feature 2018)</summary>
  99. void MarkerDeleteHandle(int handle);
  100. /// <summary>Is undo history being collected? (Scintilla feature 2019)</summary>
  101. bool GetUndoCollection();
  102. /// <summary>
  103. /// Are white space characters currently visible?
  104. /// Returns one of SCWS_* constants.
  105. /// (Scintilla feature 2020)
  106. /// </summary>
  107. int GetViewWS();
  108. /// <summary>Make white space characters invisible, always visible or visible outside indentation. (Scintilla feature 2021)</summary>
  109. void SetViewWS(int viewWS);
  110. /// <summary>Find the position from a point within the window. (Scintilla feature 2022)</summary>
  111. Position PositionFromPoint(int x, int y);
  112. /// <summary>
  113. /// Find the position from a point within the window but return
  114. /// INVALID_POSITION if not close to text.
  115. /// (Scintilla feature 2023)
  116. /// </summary>
  117. Position PositionFromPointClose(int x, int y);
  118. /// <summary>Set caret to start of a line and ensure it is visible. (Scintilla feature 2024)</summary>
  119. void GotoLine(int line);
  120. /// <summary>Set caret to a position and ensure it is visible. (Scintilla feature 2025)</summary>
  121. void GotoPos(Position pos);
  122. /// <summary>
  123. /// Set the selection anchor to a position. The anchor is the opposite
  124. /// end of the selection from the caret.
  125. /// (Scintilla feature 2026)
  126. /// </summary>
  127. void SetAnchor(Position posAnchor);
  128. /// <summary>
  129. /// Retrieve the text of the line containing the caret.
  130. /// Returns the index of the caret on the line.
  131. /// Result is NUL-terminated.
  132. /// (Scintilla feature 2027)
  133. /// </summary>
  134. unsafe string GetCurLine(int length);
  135. /// <summary>Retrieve the position of the last correctly styled character. (Scintilla feature 2028)</summary>
  136. Position GetEndStyled();
  137. /// <summary>Convert all line endings in the document to one mode. (Scintilla feature 2029)</summary>
  138. void ConvertEOLs(int eolMode);
  139. /// <summary>Retrieve the current end of line mode - one of CRLF, CR, or LF. (Scintilla feature 2030)</summary>
  140. int GetEOLMode();
  141. /// <summary>Set the current end of line mode. (Scintilla feature 2031)</summary>
  142. void SetEOLMode(int eolMode);
  143. /// <summary>
  144. /// Set the current styling position to pos and the styling mask to mask.
  145. /// The styling mask can be used to protect some bits in each styling byte from modification.
  146. /// (Scintilla feature 2032)
  147. /// </summary>
  148. void StartStyling(Position pos, int mask);
  149. /// <summary>
  150. /// Change style from current styling position for length characters to a style
  151. /// and move the current styling position to after this newly styled segment.
  152. /// (Scintilla feature 2033)
  153. /// </summary>
  154. void SetStyling(int length, int style);
  155. /// <summary>Is drawing done first into a buffer or direct to the screen? (Scintilla feature 2034)</summary>
  156. bool GetBufferedDraw();
  157. /// <summary>
  158. /// If drawing is buffered then each line of text is drawn into a bitmap buffer
  159. /// before drawing it to the screen to avoid flicker.
  160. /// (Scintilla feature 2035)
  161. /// </summary>
  162. void SetBufferedDraw(bool buffered);
  163. /// <summary>Change the visible size of a tab to be a multiple of the width of a space character. (Scintilla feature 2036)</summary>
  164. void SetTabWidth(int tabWidth);
  165. /// <summary>Retrieve the visible size of a tab. (Scintilla feature 2121)</summary>
  166. int GetTabWidth();
  167. /// <summary>Clear explicit tabstops on a line. (Scintilla feature 2675)</summary>
  168. void ClearTabStops(int line);
  169. /// <summary>Add an explicit tab stop for a line. (Scintilla feature 2676)</summary>
  170. void AddTabStop(int line, int x);
  171. /// <summary>Find the next explicit tab stop position on a line after a position. (Scintilla feature 2677)</summary>
  172. int GetNextTabStop(int line, int x);
  173. /// <summary>
  174. /// Set the code page used to interpret the bytes of the document as characters.
  175. /// The SC_CP_UTF8 value can be used to enter Unicode mode.
  176. /// (Scintilla feature 2037)
  177. /// </summary>
  178. void SetCodePage(int codePage);
  179. /// <summary>Is the IME displayed in a winow or inline? (Scintilla feature 2678)</summary>
  180. int GetIMEInteraction();
  181. /// <summary>Choose to display the the IME in a winow or inline. (Scintilla feature 2679)</summary>
  182. void SetIMEInteraction(int imeInteraction);
  183. /// <summary>Set the symbol used for a particular marker number. (Scintilla feature 2040)</summary>
  184. void MarkerDefine(int markerNumber, int markerSymbol);
  185. /// <summary>Set the foreground colour used for a particular marker number. (Scintilla feature 2041)</summary>
  186. void MarkerSetFore(int markerNumber, Colour fore);
  187. /// <summary>Set the background colour used for a particular marker number. (Scintilla feature 2042)</summary>
  188. void MarkerSetBack(int markerNumber, Colour back);
  189. /// <summary>Set the background colour used for a particular marker number when its folding block is selected. (Scintilla feature 2292)</summary>
  190. void MarkerSetBackSelected(int markerNumber, Colour back);
  191. /// <summary>Enable/disable highlight for current folding bloc (smallest one that contains the caret) (Scintilla feature 2293)</summary>
  192. void MarkerEnableHighlight(bool enabled);
  193. /// <summary>Add a marker to a line, returning an ID which can be used to find or delete the marker. (Scintilla feature 2043)</summary>
  194. int MarkerAdd(int line, int markerNumber);
  195. /// <summary>Delete a marker from a line. (Scintilla feature 2044)</summary>
  196. void MarkerDelete(int line, int markerNumber);
  197. /// <summary>Delete all markers with a particular number from all lines. (Scintilla feature 2045)</summary>
  198. void MarkerDeleteAll(int markerNumber);
  199. /// <summary>Get a bit mask of all the markers set on a line. (Scintilla feature 2046)</summary>
  200. int MarkerGet(int line);
  201. /// <summary>
  202. /// Find the next line at or after lineStart that includes a marker in mask.
  203. /// Return -1 when no more lines.
  204. /// (Scintilla feature 2047)
  205. /// </summary>
  206. int MarkerNext(int lineStart, int markerMask);
  207. /// <summary>Find the previous line before lineStart that includes a marker in mask. (Scintilla feature 2048)</summary>
  208. int MarkerPrevious(int lineStart, int markerMask);
  209. /// <summary>Define a marker from a pixmap. (Scintilla feature 2049)</summary>
  210. unsafe void MarkerDefinePixmap(int markerNumber, string pixmap);
  211. /// <summary>Add a set of markers to a line. (Scintilla feature 2466)</summary>
  212. void MarkerAddSet(int line, int set);
  213. /// <summary>Set the alpha used for a marker that is drawn in the text area, not the margin. (Scintilla feature 2476)</summary>
  214. void MarkerSetAlpha(int markerNumber, int alpha);
  215. /// <summary>Set a margin to be either numeric or symbolic. (Scintilla feature 2240)</summary>
  216. void SetMarginTypeN(int margin, int marginType);
  217. /// <summary>Retrieve the type of a margin. (Scintilla feature 2241)</summary>
  218. int GetMarginTypeN(int margin);
  219. /// <summary>Set the width of a margin to a width expressed in pixels. (Scintilla feature 2242)</summary>
  220. void SetMarginWidthN(int margin, int pixelWidth);
  221. /// <summary>Retrieve the width of a margin in pixels. (Scintilla feature 2243)</summary>
  222. int GetMarginWidthN(int margin);
  223. /// <summary>Set a mask that determines which markers are displayed in a margin. (Scintilla feature 2244)</summary>
  224. void SetMarginMaskN(int margin, int mask);
  225. /// <summary>Retrieve the marker mask of a margin. (Scintilla feature 2245)</summary>
  226. int GetMarginMaskN(int margin);
  227. /// <summary>Make a margin sensitive or insensitive to mouse clicks. (Scintilla feature 2246)</summary>
  228. void SetMarginSensitiveN(int margin, bool sensitive);
  229. /// <summary>Retrieve the mouse click sensitivity of a margin. (Scintilla feature 2247)</summary>
  230. bool GetMarginSensitiveN(int margin);
  231. /// <summary>Set the cursor shown when the mouse is inside a margin. (Scintilla feature 2248)</summary>
  232. void SetMarginCursorN(int margin, int cursor);
  233. /// <summary>Retrieve the cursor shown in a margin. (Scintilla feature 2249)</summary>
  234. int GetMarginCursorN(int margin);
  235. /// <summary>Clear all the styles and make equivalent to the global default style. (Scintilla feature 2050)</summary>
  236. void StyleClearAll();
  237. /// <summary>Set the foreground colour of a style. (Scintilla feature 2051)</summary>
  238. void StyleSetFore(int style, Colour fore);
  239. /// <summary>Set the background colour of a style. (Scintilla feature 2052)</summary>
  240. void StyleSetBack(int style, Colour back);
  241. /// <summary>Set a style to be bold or not. (Scintilla feature 2053)</summary>
  242. void StyleSetBold(int style, bool bold);
  243. /// <summary>Set a style to be italic or not. (Scintilla feature 2054)</summary>
  244. void StyleSetItalic(int style, bool italic);
  245. /// <summary>Set the size of characters of a style. (Scintilla feature 2055)</summary>
  246. void StyleSetSize(int style, int sizePoints);
  247. /// <summary>Set the font of a style. (Scintilla feature 2056)</summary>
  248. unsafe void StyleSetFont(int style, string fontName);
  249. /// <summary>Set a style to have its end of line filled or not. (Scintilla feature 2057)</summary>
  250. void StyleSetEOLFilled(int style, bool filled);
  251. /// <summary>Reset the default style to its state at startup (Scintilla feature 2058)</summary>
  252. void StyleResetDefault();
  253. /// <summary>Set a style to be underlined or not. (Scintilla feature 2059)</summary>
  254. void StyleSetUnderline(int style, bool underline);
  255. /// <summary>Get the foreground colour of a style. (Scintilla feature 2481)</summary>
  256. Colour StyleGetFore(int style);
  257. /// <summary>Get the background colour of a style. (Scintilla feature 2482)</summary>
  258. Colour StyleGetBack(int style);
  259. /// <summary>Get is a style bold or not. (Scintilla feature 2483)</summary>
  260. bool StyleGetBold(int style);
  261. /// <summary>Get is a style italic or not. (Scintilla feature 2484)</summary>
  262. bool StyleGetItalic(int style);
  263. /// <summary>Get the size of characters of a style. (Scintilla feature 2485)</summary>
  264. int StyleGetSize(int style);
  265. /// <summary>
  266. /// Get the font of a style.
  267. /// Returns the length of the fontName
  268. /// Result is NUL-terminated.
  269. /// (Scintilla feature 2486)
  270. /// </summary>
  271. unsafe string StyleGetFont(int style);
  272. /// <summary>Get is a style to have its end of line filled or not. (Scintilla feature 2487)</summary>
  273. bool StyleGetEOLFilled(int style);
  274. /// <summary>Get is a style underlined or not. (Scintilla feature 2488)</summary>
  275. bool StyleGetUnderline(int style);
  276. /// <summary>Get is a style mixed case, or to force upper or lower case. (Scintilla feature 2489)</summary>
  277. int StyleGetCase(int style);
  278. /// <summary>Get the character get of the font in a style. (Scintilla feature 2490)</summary>
  279. int StyleGetCharacterSet(int style);
  280. /// <summary>Get is a style visible or not. (Scintilla feature 2491)</summary>
  281. bool StyleGetVisible(int style);
  282. /// <summary>
  283. /// Get is a style changeable or not (read only).
  284. /// Experimental feature, currently buggy.
  285. /// (Scintilla feature 2492)
  286. /// </summary>
  287. bool StyleGetChangeable(int style);
  288. /// <summary>Get is a style a hotspot or not. (Scintilla feature 2493)</summary>
  289. bool StyleGetHotSpot(int style);
  290. /// <summary>Set a style to be mixed case, or to force upper or lower case. (Scintilla feature 2060)</summary>
  291. void StyleSetCase(int style, int caseForce);
  292. /// <summary>Set the size of characters of a style. Size is in points multiplied by 100. (Scintilla feature 2061)</summary>
  293. void StyleSetSizeFractional(int style, int caseForce);
  294. /// <summary>Get the size of characters of a style in points multiplied by 100 (Scintilla feature 2062)</summary>
  295. int StyleGetSizeFractional(int style);
  296. /// <summary>Set the weight of characters of a style. (Scintilla feature 2063)</summary>
  297. void StyleSetWeight(int style, int weight);
  298. /// <summary>Get the weight of characters of a style. (Scintilla feature 2064)</summary>
  299. int StyleGetWeight(int style);
  300. /// <summary>Set the character set of the font in a style. (Scintilla feature 2066)</summary>
  301. void StyleSetCharacterSet(int style, int characterSet);
  302. /// <summary>Set a style to be a hotspot or not. (Scintilla feature 2409)</summary>
  303. void StyleSetHotSpot(int style, bool hotspot);
  304. /// <summary>Set the foreground colour of the main and additional selections and whether to use this setting. (Scintilla feature 2067)</summary>
  305. void SetSelFore(bool useSetting, Colour fore);
  306. /// <summary>Set the background colour of the main and additional selections and whether to use this setting. (Scintilla feature 2068)</summary>
  307. void SetSelBack(bool useSetting, Colour back);
  308. /// <summary>Get the alpha of the selection. (Scintilla feature 2477)</summary>
  309. int GetSelAlpha();
  310. /// <summary>Set the alpha of the selection. (Scintilla feature 2478)</summary>
  311. void SetSelAlpha(int alpha);
  312. /// <summary>Is the selection end of line filled? (Scintilla feature 2479)</summary>
  313. bool GetSelEOLFilled();
  314. /// <summary>Set the selection to have its end of line filled or not. (Scintilla feature 2480)</summary>
  315. void SetSelEOLFilled(bool filled);
  316. /// <summary>Set the foreground colour of the caret. (Scintilla feature 2069)</summary>
  317. void SetCaretFore(Colour fore);
  318. /// <summary>When key+modifier combination km is pressed perform msg. (Scintilla feature 2070)</summary>
  319. void AssignCmdKey(KeyModifier km, int msg);
  320. /// <summary>When key+modifier combination km is pressed do nothing. (Scintilla feature 2071)</summary>
  321. void ClearCmdKey(KeyModifier km);
  322. /// <summary>Drop all key mappings. (Scintilla feature 2072)</summary>
  323. void ClearAllCmdKeys();
  324. /// <summary>Set the styles for a segment of the document. (Scintilla feature 2073)</summary>
  325. unsafe void SetStylingEx(int length, string styles);
  326. /// <summary>Set a style to be visible or not. (Scintilla feature 2074)</summary>
  327. void StyleSetVisible(int style, bool visible);
  328. /// <summary>Get the time in milliseconds that the caret is on and off. (Scintilla feature 2075)</summary>
  329. int GetCaretPeriod();
  330. /// <summary>Get the time in milliseconds that the caret is on and off. 0 = steady on. (Scintilla feature 2076)</summary>
  331. void SetCaretPeriod(int periodMilliseconds);
  332. /// <summary>
  333. /// Set the set of characters making up words for when moving or selecting by word.
  334. /// First sets defaults like SetCharsDefault.
  335. /// (Scintilla feature 2077)
  336. /// </summary>
  337. unsafe void SetWordChars(string characters);
  338. /// <summary>
  339. /// Get the set of characters making up words for when moving or selecting by word.
  340. /// Returns the number of characters
  341. /// (Scintilla feature 2646)
  342. /// </summary>
  343. unsafe string GetWordChars();
  344. /// <summary>
  345. /// Start a sequence of actions that is undone and redone as a unit.
  346. /// May be nested.
  347. /// (Scintilla feature 2078)
  348. /// </summary>
  349. void BeginUndoAction();
  350. /// <summary>End a sequence of actions that is undone and redone as a unit. (Scintilla feature 2079)</summary>
  351. void EndUndoAction();
  352. /// <summary>Set an indicator to plain, squiggle or TT. (Scintilla feature 2080)</summary>
  353. void IndicSetStyle(int indic, int style);
  354. /// <summary>Retrieve the style of an indicator. (Scintilla feature 2081)</summary>
  355. int IndicGetStyle(int indic);
  356. /// <summary>Set the foreground colour of an indicator. (Scintilla feature 2082)</summary>
  357. void IndicSetFore(int indic, Colour fore);
  358. /// <summary>Retrieve the foreground colour of an indicator. (Scintilla feature 2083)</summary>
  359. Colour IndicGetFore(int indic);
  360. /// <summary>Set an indicator to draw under text or over(default). (Scintilla feature 2510)</summary>
  361. void IndicSetUnder(int indic, bool under);
  362. /// <summary>Retrieve whether indicator drawn under or over text. (Scintilla feature 2511)</summary>
  363. bool IndicGetUnder(int indic);
  364. /// <summary>Set a hover indicator to plain, squiggle or TT. (Scintilla feature 2680)</summary>
  365. void IndicSetHoverStyle(int indic, int style);
  366. /// <summary>Retrieve the hover style of an indicator. (Scintilla feature 2681)</summary>
  367. int IndicGetHoverStyle(int indic);
  368. /// <summary>Set the foreground hover colour of an indicator. (Scintilla feature 2682)</summary>
  369. void IndicSetHoverFore(int indic, Colour fore);
  370. /// <summary>Retrieve the foreground hover colour of an indicator. (Scintilla feature 2683)</summary>
  371. Colour IndicGetHoverFore(int indic);
  372. /// <summary>Set the attributes of an indicator. (Scintilla feature 2684)</summary>
  373. void IndicSetFlags(int indic, int flags);
  374. /// <summary>Retrieve the attributes of an indicator. (Scintilla feature 2685)</summary>
  375. int IndicGetFlags(int indic);
  376. /// <summary>Set the foreground colour of all whitespace and whether to use this setting. (Scintilla feature 2084)</summary>
  377. void SetWhitespaceFore(bool useSetting, Colour fore);
  378. /// <summary>Set the background colour of all whitespace and whether to use this setting. (Scintilla feature 2085)</summary>
  379. void SetWhitespaceBack(bool useSetting, Colour back);
  380. /// <summary>Set the size of the dots used to mark space characters. (Scintilla feature 2086)</summary>
  381. void SetWhitespaceSize(int size);
  382. /// <summary>Get the size of the dots used to mark space characters. (Scintilla feature 2087)</summary>
  383. int GetWhitespaceSize();
  384. /// <summary>
  385. /// Divide each styling byte into lexical class bits (default: 5) and indicator
  386. /// bits (default: 3). If a lexer requires more than 32 lexical states, then this
  387. /// is used to expand the possible states.
  388. /// (Scintilla feature 2090)
  389. /// </summary>
  390. void SetStyleBits(int bits);
  391. /// <summary>Retrieve number of bits in style bytes used to hold the lexical state. (Scintilla feature 2091)</summary>
  392. int GetStyleBits();
  393. /// <summary>Used to hold extra styling information for each line. (Scintilla feature 2092)</summary>
  394. void SetLineState(int line, int state);
  395. /// <summary>Retrieve the extra styling information for a line. (Scintilla feature 2093)</summary>
  396. int GetLineState(int line);
  397. /// <summary>Retrieve the last line number that has line state. (Scintilla feature 2094)</summary>
  398. int GetMaxLineState();
  399. /// <summary>Is the background of the line containing the caret in a different colour? (Scintilla feature 2095)</summary>
  400. bool GetCaretLineVisible();
  401. /// <summary>Display the background of the line containing the caret in a different colour. (Scintilla feature 2096)</summary>
  402. void SetCaretLineVisible(bool show);
  403. /// <summary>Get the colour of the background of the line containing the caret. (Scintilla feature 2097)</summary>
  404. Colour GetCaretLineBack();
  405. /// <summary>Set the colour of the background of the line containing the caret. (Scintilla feature 2098)</summary>
  406. void SetCaretLineBack(Colour back);
  407. /// <summary>
  408. /// Set a style to be changeable or not (read only).
  409. /// Experimental feature, currently buggy.
  410. /// (Scintilla feature 2099)
  411. /// </summary>
  412. void StyleSetChangeable(int style, bool changeable);
  413. /// <summary>
  414. /// Display a auto-completion list.
  415. /// The lenEntered parameter indicates how many characters before
  416. /// the caret should be used to provide context.
  417. /// (Scintilla feature 2100)
  418. /// </summary>
  419. unsafe void AutoCShow(int lenEntered, string itemList);
  420. /// <summary>Remove the auto-completion list from the screen. (Scintilla feature 2101)</summary>
  421. void AutoCCancel();
  422. /// <summary>Is there an auto-completion list visible? (Scintilla feature 2102)</summary>
  423. bool AutoCActive();
  424. /// <summary>Retrieve the position of the caret when the auto-completion list was displayed. (Scintilla feature 2103)</summary>
  425. Position AutoCPosStart();
  426. /// <summary>User has selected an item so remove the list and insert the selection. (Scintilla feature 2104)</summary>
  427. void AutoCComplete();
  428. /// <summary>Define a set of character that when typed cancel the auto-completion list. (Scintilla feature 2105)</summary>
  429. unsafe void AutoCStops(string characterSet);
  430. /// <summary>
  431. /// Change the separator character in the string setting up an auto-completion list.
  432. /// Default is space but can be changed if items contain space.
  433. /// (Scintilla feature 2106)
  434. /// </summary>
  435. void AutoCSetSeparator(int separatorCharacter);
  436. /// <summary>Retrieve the auto-completion list separator character. (Scintilla feature 2107)</summary>
  437. int AutoCGetSeparator();
  438. /// <summary>Select the item in the auto-completion list that starts with a string. (Scintilla feature 2108)</summary>
  439. unsafe void AutoCSelect(string text);
  440. /// <summary>
  441. /// Should the auto-completion list be cancelled if the user backspaces to a
  442. /// position before where the box was created.
  443. /// (Scintilla feature 2110)
  444. /// </summary>
  445. void AutoCSetCancelAtStart(bool cancel);
  446. /// <summary>Retrieve whether auto-completion cancelled by backspacing before start. (Scintilla feature 2111)</summary>
  447. bool AutoCGetCancelAtStart();
  448. /// <summary>
  449. /// Define a set of characters that when typed will cause the autocompletion to
  450. /// choose the selected item.
  451. /// (Scintilla feature 2112)
  452. /// </summary>
  453. unsafe void AutoCSetFillUps(string characterSet);
  454. /// <summary>Should a single item auto-completion list automatically choose the item. (Scintilla feature 2113)</summary>
  455. void AutoCSetChooseSingle(bool chooseSingle);
  456. /// <summary>Retrieve whether a single item auto-completion list automatically choose the item. (Scintilla feature 2114)</summary>
  457. bool AutoCGetChooseSingle();
  458. /// <summary>Set whether case is significant when performing auto-completion searches. (Scintilla feature 2115)</summary>
  459. void AutoCSetIgnoreCase(bool ignoreCase);
  460. /// <summary>Retrieve state of ignore case flag. (Scintilla feature 2116)</summary>
  461. bool AutoCGetIgnoreCase();
  462. /// <summary>Display a list of strings and send notification when user chooses one. (Scintilla feature 2117)</summary>
  463. unsafe void UserListShow(int listType, string itemList);
  464. /// <summary>Set whether or not autocompletion is hidden automatically when nothing matches. (Scintilla feature 2118)</summary>
  465. void AutoCSetAutoHide(bool autoHide);
  466. /// <summary>Retrieve whether or not autocompletion is hidden automatically when nothing matches. (Scintilla feature 2119)</summary>
  467. bool AutoCGetAutoHide();
  468. /// <summary>
  469. /// Set whether or not autocompletion deletes any word characters
  470. /// after the inserted text upon completion.
  471. /// (Scintilla feature 2270)
  472. /// </summary>
  473. void AutoCSetDropRestOfWord(bool dropRestOfWord);
  474. /// <summary>
  475. /// Retrieve whether or not autocompletion deletes any word characters
  476. /// after the inserted text upon completion.
  477. /// (Scintilla feature 2271)
  478. /// </summary>
  479. bool AutoCGetDropRestOfWord();
  480. /// <summary>Register an XPM image for use in autocompletion lists. (Scintilla feature 2405)</summary>
  481. unsafe void RegisterImage(int type, string xpmData);
  482. /// <summary>Clear all the registered XPM images. (Scintilla feature 2408)</summary>
  483. void ClearRegisteredImages();
  484. /// <summary>Retrieve the auto-completion list type-separator character. (Scintilla feature 2285)</summary>
  485. int AutoCGetTypeSeparator();
  486. /// <summary>
  487. /// Change the type-separator character in the string setting up an auto-completion list.
  488. /// Default is '?' but can be changed if items contain '?'.
  489. /// (Scintilla feature 2286)
  490. /// </summary>
  491. void AutoCSetTypeSeparator(int separatorCharacter);
  492. /// <summary>
  493. /// Set the maximum width, in characters, of auto-completion and user lists.
  494. /// Set to 0 to autosize to fit longest item, which is the default.
  495. /// (Scintilla feature 2208)
  496. /// </summary>
  497. void AutoCSetMaxWidth(int characterCount);
  498. /// <summary>Get the maximum width, in characters, of auto-completion and user lists. (Scintilla feature 2209)</summary>
  499. int AutoCGetMaxWidth();
  500. /// <summary>
  501. /// Set the maximum height, in rows, of auto-completion and user lists.
  502. /// The default is 5 rows.
  503. /// (Scintilla feature 2210)
  504. /// </summary>
  505. void AutoCSetMaxHeight(int rowCount);
  506. /// <summary>Set the maximum height, in rows, of auto-completion and user lists. (Scintilla feature 2211)</summary>
  507. int AutoCGetMaxHeight();
  508. /// <summary>Set the number of spaces used for one level of indentation. (Scintilla feature 2122)</summary>
  509. void SetIndent(int indentSize);
  510. /// <summary>Retrieve indentation size. (Scintilla feature 2123)</summary>
  511. int GetIndent();
  512. /// <summary>
  513. /// Indentation will only use space characters if useTabs is false, otherwise
  514. /// it will use a combination of tabs and spaces.
  515. /// (Scintilla feature 2124)
  516. /// </summary>
  517. void SetUseTabs(bool useTabs);
  518. /// <summary>Retrieve whether tabs will be used in indentation. (Scintilla feature 2125)</summary>
  519. bool GetUseTabs();
  520. /// <summary>Change the indentation of a line to a number of columns. (Scintilla feature 2126)</summary>
  521. void SetLineIndentation(int line, int indentSize);
  522. /// <summary>Retrieve the number of columns that a line is indented. (Scintilla feature 2127)</summary>
  523. int GetLineIndentation(int line);
  524. /// <summary>Retrieve the position before the first non indentation character on a line. (Scintilla feature 2128)</summary>
  525. Position GetLineIndentPosition(int line);
  526. /// <summary>Retrieve the column number of a position, taking tab width into account. (Scintilla feature 2129)</summary>
  527. int GetColumn(Position pos);
  528. /// <summary>Count characters between two positions. (Scintilla feature 2633)</summary>
  529. int CountCharacters(int startPos, int endPos);
  530. /// <summary>Show or hide the horizontal scroll bar. (Scintilla feature 2130)</summary>
  531. void SetHScrollBar(bool show);
  532. /// <summary>Is the horizontal scroll bar visible? (Scintilla feature 2131)</summary>
  533. bool GetHScrollBar();
  534. /// <summary>Show or hide indentation guides. (Scintilla feature 2132)</summary>
  535. void SetIndentationGuides(int indentView);
  536. /// <summary>Are the indentation guides visible? (Scintilla feature 2133)</summary>
  537. int GetIndentationGuides();
  538. /// <summary>
  539. /// Set the highlighted indentation guide column.
  540. /// 0 = no highlighted guide.
  541. /// (Scintilla feature 2134)
  542. /// </summary>
  543. void SetHighlightGuide(int column);
  544. /// <summary>Get the highlighted indentation guide column. (Scintilla feature 2135)</summary>
  545. int GetHighlightGuide();
  546. /// <summary>Get the position after the last visible characters on a line. (Scintilla feature 2136)</summary>
  547. Position GetLineEndPosition(int line);
  548. /// <summary>Get the code page used to interpret the bytes of the document as characters. (Scintilla feature 2137)</summary>
  549. int GetCodePage();
  550. /// <summary>Get the foreground colour of the caret. (Scintilla feature 2138)</summary>
  551. Colour GetCaretFore();
  552. /// <summary>In read-only mode? (Scintilla feature 2140)</summary>
  553. bool GetReadOnly();
  554. /// <summary>Sets the position of the caret. (Scintilla feature 2141)</summary>
  555. void SetCurrentPos(Position pos);
  556. /// <summary>Sets the position that starts the selection - this becomes the anchor. (Scintilla feature 2142)</summary>
  557. void SetSelectionStart(Position pos);
  558. /// <summary>Returns the position at the start of the selection. (Scintilla feature 2143)</summary>
  559. Position GetSelectionStart();
  560. /// <summary>Sets the position that ends the selection - this becomes the currentPosition. (Scintilla feature 2144)</summary>
  561. void SetSelectionEnd(Position pos);
  562. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2145)</summary>
  563. Position GetSelectionEnd();
  564. /// <summary>Set caret to a position, while removing any existing selection. (Scintilla feature 2556)</summary>
  565. void SetEmptySelection(Position pos);
  566. /// <summary>Sets the print magnification added to the point size of each style for printing. (Scintilla feature 2146)</summary>
  567. void SetPrintMagnification(int magnification);
  568. /// <summary>Returns the print magnification. (Scintilla feature 2147)</summary>
  569. int GetPrintMagnification();
  570. /// <summary>Modify colours when printing for clearer printed text. (Scintilla feature 2148)</summary>
  571. void SetPrintColourMode(int mode);
  572. /// <summary>Returns the print colour mode. (Scintilla feature 2149)</summary>
  573. int GetPrintColourMode();
  574. /// <summary>Find some text in the document. (Scintilla feature 2150)</summary>
  575. Position FindText(int flags, TextToFind ft);
  576. /// <summary>Retrieve the display line at the top of the display. (Scintilla feature 2152)</summary>
  577. int GetFirstVisibleLine();
  578. /// <summary>
  579. /// Retrieve the contents of a line.
  580. /// Returns the length of the line.
  581. /// (Scintilla feature 2153)
  582. /// </summary>
  583. unsafe string GetLine(int line);
  584. /// <summary>Returns the number of lines in the document. There is always at least one. (Scintilla feature 2154)</summary>
  585. int GetLineCount();
  586. /// <summary>Sets the size in pixels of the left margin. (Scintilla feature 2155)</summary>
  587. void SetMarginLeft(int pixelWidth);
  588. /// <summary>Returns the size in pixels of the left margin. (Scintilla feature 2156)</summary>
  589. int GetMarginLeft();
  590. /// <summary>Sets the size in pixels of the right margin. (Scintilla feature 2157)</summary>
  591. void SetMarginRight(int pixelWidth);
  592. /// <summary>Returns the size in pixels of the right margin. (Scintilla feature 2158)</summary>
  593. int GetMarginRight();
  594. /// <summary>Is the document different from when it was last saved? (Scintilla feature 2159)</summary>
  595. bool GetModify();
  596. /// <summary>Select a range of text. (Scintilla feature 2160)</summary>
  597. void SetSel(Position start, Position end);
  598. /// <summary>
  599. /// Retrieve the selected text.
  600. /// Return the length of the text.
  601. /// Result is NUL-terminated.
  602. /// (Scintilla feature 2161)
  603. /// </summary>
  604. unsafe string GetSelText();
  605. /// <summary>
  606. /// Retrieve a range of text.
  607. /// Return the length of the text.
  608. /// (Scintilla feature 2162)
  609. /// </summary>
  610. int GetTextRange(TextRange tr);
  611. /// <summary>Draw the selection in normal style or with selection highlighted. (Scintilla feature 2163)</summary>
  612. void HideSelection(bool normal);
  613. /// <summary>Retrieve the x value of the point in the window where a position is displayed. (Scintilla feature 2164)</summary>
  614. int PointXFromPosition(Position pos);
  615. /// <summary>Retrieve the y value of the point in the window where a position is displayed. (Scintilla feature 2165)</summary>
  616. int PointYFromPosition(Position pos);
  617. /// <summary>Retrieve the line containing a position. (Scintilla feature 2166)</summary>
  618. int LineFromPosition(Position pos);
  619. /// <summary>Retrieve the position at the start of a line. (Scintilla feature 2167)</summary>
  620. Position PositionFromLine(int line);
  621. /// <summary>Scroll horizontally and vertically. (Scintilla feature 2168)</summary>
  622. void LineScroll(int columns, int lines);
  623. /// <summary>Ensure the caret is visible. (Scintilla feature 2169)</summary>
  624. void ScrollCaret();
  625. /// <summary>
  626. /// Scroll the argument positions and the range between them into view giving
  627. /// priority to the primary position then the secondary position.
  628. /// This may be used to make a search match visible.
  629. /// (Scintilla feature 2569)
  630. /// </summary>
  631. void ScrollRange(Position secondary, Position primary);
  632. /// <summary>Replace the selected text with the argument text. (Scintilla feature 2170)</summary>
  633. unsafe void ReplaceSel(string text);
  634. /// <summary>Set to read only or read write. (Scintilla feature 2171)</summary>
  635. void SetReadOnly(bool readOnly);
  636. /// <summary>Null operation. (Scintilla feature 2172)</summary>
  637. void Null();
  638. /// <summary>Will a paste succeed? (Scintilla feature 2173)</summary>
  639. bool CanPaste();
  640. /// <summary>Are there any undoable actions in the undo history? (Scintilla feature 2174)</summary>
  641. bool CanUndo();
  642. /// <summary>Delete the undo history. (Scintilla feature 2175)</summary>
  643. void EmptyUndoBuffer();
  644. /// <summary>Undo one action in the undo history. (Scintilla feature 2176)</summary>
  645. void Undo();
  646. /// <summary>Cut the selection to the clipboard. (Scintilla feature 2177)</summary>
  647. void Cut();
  648. /// <summary>Copy the selection to the clipboard. (Scintilla feature 2178)</summary>
  649. void Copy();
  650. /// <summary>Paste the contents of the clipboard into the document replacing the selection. (Scintilla feature 2179)</summary>
  651. void Paste();
  652. /// <summary>Clear the selection. (Scintilla feature 2180)</summary>
  653. void Clear();
  654. /// <summary>Replace the contents of the document with the argument text. (Scintilla feature 2181)</summary>
  655. unsafe void SetText(string text);
  656. /// <summary>
  657. /// Retrieve all the text in the document.
  658. /// Returns number of characters retrieved.
  659. /// Result is NUL-terminated.
  660. /// (Scintilla feature 2182)
  661. /// </summary>
  662. unsafe string GetText(int length);
  663. /// <summary>Retrieve the number of characters in the document. (Scintilla feature 2183)</summary>
  664. int GetTextLength();
  665. /// <summary>Retrieve a pointer to a function that processes messages for this Scintilla. (Scintilla feature 2184)</summary>
  666. IntPtr GetDirectFunction();
  667. /// <summary>
  668. /// Retrieve a pointer value to use as the first argument when calling
  669. /// the function returned by GetDirectFunction.
  670. /// (Scintilla feature 2185)
  671. /// </summary>
  672. IntPtr GetDirectPointer();
  673. /// <summary>Set to overtype (true) or insert mode. (Scintilla feature 2186)</summary>
  674. void SetOvertype(bool overtype);
  675. /// <summary>Returns true if overtype mode is active otherwise false is returned. (Scintilla feature 2187)</summary>
  676. bool GetOvertype();
  677. /// <summary>Set the width of the insert mode caret. (Scintilla feature 2188)</summary>
  678. void SetCaretWidth(int pixelWidth);
  679. /// <summary>Returns the width of the insert mode caret. (Scintilla feature 2189)</summary>
  680. int GetCaretWidth();
  681. /// <summary>
  682. /// Sets the position that starts the target which is used for updating the
  683. /// document without affecting the scroll position.
  684. /// (Scintilla feature 2190)
  685. /// </summary>
  686. void SetTargetStart(Position pos);
  687. /// <summary>Get the position that starts the target. (Scintilla feature 2191)</summary>
  688. Position GetTargetStart();
  689. /// <summary>
  690. /// Sets the position that ends the target which is used for updating the
  691. /// document without affecting the scroll position.
  692. /// (Scintilla feature 2192)
  693. /// </summary>
  694. void SetTargetEnd(Position pos);
  695. /// <summary>Get the position that ends the target. (Scintilla feature 2193)</summary>
  696. Position GetTargetEnd();
  697. /// <summary>Sets both the start and end of the target in one call. (Scintilla feature 2686)</summary>
  698. void SetTargetRange(Position start, Position end);
  699. /// <summary>Retrieve the text in the target. (Scintilla feature 2687)</summary>
  700. unsafe string GetTargetText();
  701. /// <summary>
  702. /// Replace the target text with the argument text.
  703. /// Text is counted so it can contain NULs.
  704. /// Returns the length of the replacement text.
  705. /// (Scintilla feature 2194)
  706. /// </summary>
  707. unsafe int ReplaceTarget(int length, string text);
  708. /// <summary>
  709. /// Replace the target text with the argument text after \d processing.
  710. /// Text is counted so it can contain NULs.
  711. /// Looks for \d where d is between 1 and 9 and replaces these with the strings
  712. /// matched in the last search operation which were surrounded by \( and \).
  713. /// Returns the length of the replacement text including any change
  714. /// caused by processing the \d patterns.
  715. /// (Scintilla feature 2195)
  716. /// </summary>
  717. unsafe int ReplaceTargetRE(int length, string text);
  718. /// <summary>
  719. /// Search for a counted string in the target and set the target to the found
  720. /// range. Text is counted so it can contain NULs.
  721. /// Returns length of range or -1 for failure in which case target is not moved.
  722. /// (Scintilla feature 2197)
  723. /// </summary>
  724. unsafe int SearchInTarget(int length, string text);
  725. /// <summary>Set the search flags used by SearchInTarget. (Scintilla feature 2198)</summary>
  726. void SetSearchFlags(int flags);
  727. /// <summary>Get the search flags used by SearchInTarget. (Scintilla feature 2199)</summary>
  728. int GetSearchFlags();
  729. /// <summary>Show a call tip containing a definition near position pos. (Scintilla feature 2200)</summary>
  730. unsafe void CallTipShow(Position pos, string definition);
  731. /// <summary>Remove the call tip from the screen. (Scintilla feature 2201)</summary>
  732. void CallTipCancel();
  733. /// <summary>Is there an active call tip? (Scintilla feature 2202)</summary>
  734. bool CallTipActive();
  735. /// <summary>Retrieve the position where the caret was before displaying the call tip. (Scintilla feature 2203)</summary>
  736. Position CallTipPosStart();
  737. /// <summary>Set the start position in order to change when backspacing removes the calltip. (Scintilla feature 2214)</summary>
  738. void CallTipSetPosStart(int posStart);
  739. /// <summary>Highlight a segment of the definition. (Scintilla feature 2204)</summary>
  740. void CallTipSetHlt(int start, int end);
  741. /// <summary>Set the background colour for the call tip. (Scintilla feature 2205)</summary>
  742. void CallTipSetBack(Colour back);
  743. /// <summary>Set the foreground colour for the call tip. (Scintilla feature 2206)</summary>
  744. void CallTipSetFore(Colour fore);
  745. /// <summary>Set the foreground colour for the highlighted part of the call tip. (Scintilla feature 2207)</summary>
  746. void CallTipSetForeHlt(Colour fore);
  747. /// <summary>Enable use of STYLE_CALLTIP and set call tip tab size in pixels. (Scintilla feature 2212)</summary>
  748. void CallTipUseStyle(int tabSize);
  749. /// <summary>Set position of calltip, above or below text. (Scintilla feature 2213)</summary>
  750. void CallTipSetPosition(bool above);
  751. /// <summary>Find the display line of a document line taking hidden lines into account. (Scintilla feature 2220)</summary>
  752. int VisibleFromDocLine(int line);
  753. /// <summary>Find the document line of a display line taking hidden lines into account. (Scintilla feature 2221)</summary>
  754. int DocLineFromVisible(int lineDisplay);
  755. /// <summary>The number of display lines needed to wrap a document line (Scintilla feature 2235)</summary>
  756. int WrapCount(int line);
  757. /// <summary>
  758. /// Set the fold level of a line.
  759. /// This encodes an integer level along with flags indicating whether the
  760. /// line is a header and whether it is effectively white space.
  761. /// (Scintilla feature 2222)
  762. /// </summary>
  763. void SetFoldLevel(int line, int level);
  764. /// <summary>Retrieve the fold level of a line. (Scintilla feature 2223)</summary>
  765. int GetFoldLevel(int line);
  766. /// <summary>Find the last child line of a header line. (Scintilla feature 2224)</summary>
  767. int GetLastChild(int line, int level);
  768. /// <summary>Find the parent line of a child line. (Scintilla feature 2225)</summary>
  769. int GetFoldParent(int line);
  770. /// <summary>Make a range of lines visible. (Scintilla feature 2226)</summary>
  771. void ShowLines(int lineStart, int lineEnd);
  772. /// <summary>Make a range of lines invisible. (Scintilla feature 2227)</summary>
  773. void HideLines(int lineStart, int lineEnd);
  774. /// <summary>Is a line visible? (Scintilla feature 2228)</summary>
  775. bool GetLineVisible(int line);
  776. /// <summary>Are all lines visible? (Scintilla feature 2236)</summary>
  777. bool GetAllLinesVisible();
  778. /// <summary>Show the children of a header line. (Scintilla feature 2229)</summary>
  779. void SetFoldExpanded(int line, bool expanded);
  780. /// <summary>Is a header line expanded? (Scintilla feature 2230)</summary>
  781. bool GetFoldExpanded(int line);
  782. /// <summary>Switch a header line between expanded and contracted. (Scintilla feature 2231)</summary>
  783. void ToggleFold(int line);
  784. /// <summary>Expand or contract a fold header. (Scintilla feature 2237)</summary>
  785. void FoldLine(int line, int action);
  786. /// <summary>Expand or contract a fold header and its children. (Scintilla feature 2238)</summary>
  787. void FoldChildren(int line, int action);
  788. /// <summary>Expand a fold header and all children. Use the level argument instead of the line's current level. (Scintilla feature 2239)</summary>
  789. void ExpandChildren(int line, int level);
  790. /// <summary>Expand or contract all fold headers. (Scintilla feature 2662)</summary>
  791. void FoldAll(int action);
  792. /// <summary>Ensure a particular line is visible by expanding any header line hiding it. (Scintilla feature 2232)</summary>
  793. void EnsureVisible(int line);
  794. /// <summary>Set automatic folding behaviours. (Scintilla feature 2663)</summary>
  795. void SetAutomaticFold(int automaticFold);
  796. /// <summary>Get automatic folding behaviours. (Scintilla feature 2664)</summary>
  797. int GetAutomaticFold();
  798. /// <summary>Set some style options for folding. (Scintilla feature 2233)</summary>
  799. void SetFoldFlags(int flags);
  800. /// <summary>
  801. /// Ensure a particular line is visible by expanding any header line hiding it.
  802. /// Use the currently set visibility policy to determine which range to display.
  803. /// (Scintilla feature 2234)
  804. /// </summary>
  805. void EnsureVisibleEnforcePolicy(int line);
  806. /// <summary>Sets whether a tab pressed when caret is within indentation indents. (Scintilla feature 2260)</summary>
  807. void SetTabIndents(bool tabIndents);
  808. /// <summary>Does a tab pressed when caret is within indentation indent? (Scintilla feature 2261)</summary>
  809. bool GetTabIndents();
  810. /// <summary>Sets whether a backspace pressed when caret is within indentation unindents. (Scintilla feature 2262)</summary>
  811. void SetBackSpaceUnIndents(bool bsUnIndents);
  812. /// <summary>Does a backspace pressed when caret is within indentation unindent? (Scintilla feature 2263)</summary>
  813. bool GetBackSpaceUnIndents();
  814. /// <summary>Sets the time the mouse must sit still to generate a mouse dwell event. (Scintilla feature 2264)</summary>
  815. void SetMouseDwellTime(int periodMilliseconds);
  816. /// <summary>Retrieve the time the mouse must sit still to generate a mouse dwell event. (Scintilla feature 2265)</summary>
  817. int GetMouseDwellTime();
  818. /// <summary>Get position of start of word. (Scintilla feature 2266)</summary>
  819. int WordStartPosition(Position pos, bool onlyWordCharacters);
  820. /// <summary>Get position of end of word. (Scintilla feature 2267)</summary>
  821. int WordEndPosition(Position pos, bool onlyWordCharacters);
  822. /// <summary>Sets whether text is word wrapped. (Scintilla feature 2268)</summary>
  823. void SetWrapMode(int mode);
  824. /// <summary>Retrieve whether text is word wrapped. (Scintilla feature 2269)</summary>
  825. int GetWrapMode();
  826. /// <summary>Set the display mode of visual flags for wrapped lines. (Scintilla feature 2460)</summary>
  827. void SetWrapVisualFlags(int wrapVisualFlags);
  828. /// <summary>Retrive the display mode of visual flags for wrapped lines. (Scintilla feature 2461)</summary>
  829. int GetWrapVisualFlags();
  830. /// <summary>Set the location of visual flags for wrapped lines. (Scintilla feature 2462)</summary>
  831. void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation);
  832. /// <summary>Retrive the location of visual flags for wrapped lines. (Scintilla feature 2463)</summary>
  833. int GetWrapVisualFlagsLocation();
  834. /// <summary>Set the start indent for wrapped lines. (Scintilla feature 2464)</summary>
  835. void SetWrapStartIndent(int indent);
  836. /// <summary>Retrive the start indent for wrapped lines. (Scintilla feature 2465)</summary>
  837. int GetWrapStartIndent();
  838. /// <summary>Sets how wrapped sublines are placed. Default is fixed. (Scintilla feature 2472)</summary>
  839. void SetWrapIndentMode(int mode);
  840. /// <summary>Retrieve how wrapped sublines are placed. Default is fixed. (Scintilla feature 2473)</summary>
  841. int GetWrapIndentMode();
  842. /// <summary>Sets the degree of caching of layout information. (Scintilla feature 2272)</summary>
  843. void SetLayoutCache(int mode);
  844. /// <summary>Retrieve the degree of caching of layout information. (Scintilla feature 2273)</summary>
  845. int GetLayoutCache();
  846. /// <summary>Sets the document width assumed for scrolling. (Scintilla feature 2274)</summary>
  847. void SetScrollWidth(int pixelWidth);
  848. /// <summary>Retrieve the document width assumed for scrolling. (Scintilla feature 2275)</summary>
  849. int GetScrollWidth();
  850. /// <summary>Sets whether the maximum width line displayed is used to set scroll width. (Scintilla feature 2516)</summary>
  851. void SetScrollWidthTracking(bool tracking);
  852. /// <summary>Retrieve whether the scroll width tracks wide lines. (Scintilla feature 2517)</summary>
  853. bool GetScrollWidthTracking();
  854. /// <summary>
  855. /// Measure the pixel width of some text in a particular style.
  856. /// NUL terminated text argument.
  857. /// Does not handle tab or control characters.
  858. /// (Scintilla feature 2276)
  859. /// </summary>
  860. unsafe int TextWidth(int style, string text);
  861. /// <summary>
  862. /// Sets the scroll range so that maximum scroll position has
  863. /// the last line at the bottom of the view (default).
  864. /// Setting this to false allows scrolling one page below the last line.
  865. /// (Scintilla feature 2277)
  866. /// </summary>
  867. void SetEndAtLastLine(bool endAtLastLine);
  868. /// <summary>
  869. /// Retrieve whether the maximum scroll position has the last
  870. /// line at the bottom of the view.
  871. /// (Scintilla feature 2278)
  872. /// </summary>
  873. bool GetEndAtLastLine();
  874. /// <summary>Retrieve the height of a particular line of text in pixels. (Scintilla feature 2279)</summary>
  875. int TextHeight(int line);
  876. /// <summary>Show or hide the vertical scroll bar. (Scintilla feature 2280)</summary>
  877. void SetVScrollBar(bool show);
  878. /// <summary>Is the vertical scroll bar visible? (Scintilla feature 2281)</summary>
  879. bool GetVScrollBar();
  880. /// <summary>Append a string to the end of the document without changing the selection. (Scintilla feature 2282)</summary>
  881. unsafe void AppendText(int length, string text);
  882. /// <summary>Is drawing done in two phases with backgrounds drawn before foregrounds? (Scintilla feature 2283)</summary>
  883. bool GetTwoPhaseDraw();
  884. /// <summary>
  885. /// In twoPhaseDraw mode, drawing is performed in two phases, first the background
  886. /// and then the foreground. This avoids chopping off characters that overlap the next run.
  887. /// (Scintilla feature 2284)
  888. /// </summary>
  889. void SetTwoPhaseDraw(bool twoPhase);
  890. /// <summary>How many phases is drawing done in? (Scintilla feature 2673)</summary>
  891. int GetPhasesDraw();
  892. /// <summary>
  893. /// In one phase draw, text is drawn in a series of rectangular blocks with no overlap.
  894. /// In two phase draw, text is drawn in a series of lines allowing runs to overlap horizontally.
  895. /// In multiple phase draw, each element is drawn over the whole drawing area, allowing text
  896. /// to overlap from one line to the next.
  897. /// (Scintilla feature 2674)
  898. /// </summary>
  899. void SetPhasesDraw(int phases);
  900. /// <summary>Choose the quality level for text from the FontQuality enumeration. (Scintilla feature 2611)</summary>
  901. void SetFontQuality(int fontQuality);
  902. /// <summary>Retrieve the quality level for text. (Scintilla feature 2612)</summary>
  903. int GetFontQuality();
  904. /// <summary>Scroll so that a display line is at the top of the display. (Scintilla feature 2613)</summary>
  905. void SetFirstVisibleLine(int lineDisplay);
  906. /// <summary>Change the effect of pasting when there are multiple selections. (Scintilla feature 2614)</summary>
  907. void SetMultiPaste(int multiPaste);
  908. /// <summary>Retrieve the effect of pasting when there are multiple selections.. (Scintilla feature 2615)</summary>
  909. int GetMultiPaste();
  910. /// <summary>
  911. /// Retrieve the value of a tag from a regular expression search.
  912. /// Result is NUL-terminated.
  913. /// (Scintilla feature 2616)
  914. /// </summary>
  915. unsafe string GetTag(int tagNumber);
  916. /// <summary>Make the target range start and end be the same as the selection range start and end. (Scintilla feature 2287)</summary>
  917. void TargetFromSelection();
  918. /// <summary>Join the lines in the target. (Scintilla feature 2288)</summary>
  919. void LinesJoin();
  920. /// <summary>
  921. /// Split the lines in the target into lines that are less wide than pixelWidth
  922. /// where possible.
  923. /// (Scintilla feature 2289)
  924. /// </summary>
  925. void LinesSplit(int pixelWidth);
  926. /// <summary>Set the colours used as a chequerboard pattern in the fold margin (Scintilla feature 2290)</summary>
  927. void SetFoldMarginColour(bool useSetting, Colour back);
  928. /// <summary>Set the colours used as a chequerboard pattern in the fold margin (Scintilla feature 2291)</summary>
  929. void SetFoldMarginHiColour(bool useSetting, Colour fore);
  930. /// <summary>Move caret down one line. (Scintilla feature 2300)</summary>
  931. void LineDown();
  932. /// <summary>Move caret down one line extending selection to new caret position. (Scintilla feature 2301)</summary>
  933. void LineDownExtend();
  934. /// <summary>Move caret up one line. (Scintilla feature 2302)</summary>
  935. void LineUp();
  936. /// <summary>Move caret up one line extending selection to new caret position. (Scintilla feature 2303)</summary>
  937. void LineUpExtend();
  938. /// <summary>Move caret left one character. (Scintilla feature 2304)</summary>
  939. void CharLeft();
  940. /// <summary>Move caret left one character extending selection to new caret position. (Scintilla feature 2305)</summary>
  941. void CharLeftExtend();
  942. /// <summary>Move caret right one character. (Scintilla feature 2306)</summary>
  943. void CharRight();
  944. /// <summary>Move caret right one character extending selection to new caret position. (Scintilla feature 2307)</summary>
  945. void CharRightExtend();
  946. /// <summary>Move caret left one word. (Scintilla feature 2308)</summary>
  947. void WordLeft();
  948. /// <summary>Move caret left one word extending selection to new caret position. (Scintilla feature 2309)</summary>
  949. void WordLeftExtend();
  950. /// <summary>Move caret right one word. (Scintilla feature 2310)</summary>
  951. void WordRight();
  952. /// <summary>Move caret right one word extending selection to new caret position. (Scintilla feature 2311)</summary>
  953. void WordRightExtend();
  954. /// <summary>Move caret to first position on line. (Scintilla feature 2312)</summary>
  955. void Home();
  956. /// <summary>Move caret to first position on line extending selection to new caret position. (Scintilla feature 2313)</summary>
  957. void HomeExtend();
  958. /// <summary>Move caret to last position on line. (Scintilla feature 2314)</summary>
  959. void LineEnd();
  960. /// <summary>Move caret to last position on line extending selection to new caret position. (Scintilla feature 2315)</summary>
  961. void LineEndExtend();
  962. /// <summary>Move caret to first position in document. (Scintilla feature 2316)</summary>
  963. void DocumentStart();
  964. /// <summary>Move caret to first position in document extending selection to new caret position. (Scintilla feature 2317)</summary>
  965. void DocumentStartExtend();
  966. /// <summary>Move caret to last position in document. (Scintilla feature 2318)</summary>
  967. void DocumentEnd();
  968. /// <summary>Move caret to last position in document extending selection to new caret position. (Scintilla feature 2319)</summary>
  969. void DocumentEndExtend();
  970. /// <summary>Move caret one page up. (Scintilla feature 2320)</summary>
  971. void PageUp();
  972. /// <summary>Move caret one page up extending selection to new caret position. (Scintilla feature 2321)</summary>
  973. void PageUpExtend();
  974. /// <summary>Move caret one page down. (Scintilla feature 2322)</summary>
  975. void PageDown();
  976. /// <summary>Move caret one page down extending selection to new caret position. (Scintilla feature 2323)</summary>
  977. void PageDownExtend();
  978. /// <summary>Switch from insert to overtype mode or the reverse. (Scintilla feature 2324)</summary>
  979. void EditToggleOvertype();
  980. /// <summary>Cancel any modes such as call tip or auto-completion list display. (Scintilla feature 2325)</summary>
  981. void Cancel();
  982. /// <summary>Delete the selection or if no selection, the character before the caret. (Scintilla feature 2326)</summary>
  983. void DeleteBack();
  984. /// <summary>
  985. /// If selection is empty or all on one line replace the selection with a tab character.
  986. /// If more than one line selected, indent the lines.
  987. /// (Scintilla feature 2327)
  988. /// </summary>
  989. void Tab();
  990. /// <summary>Dedent the selected lines. (Scintilla feature 2328)</summary>
  991. void BackTab();
  992. /// <summary>Insert a new line, may use a CRLF, CR or LF depending on EOL mode. (Scintilla feature 2329)</summary>
  993. void NewLine();
  994. /// <summary>Insert a Form Feed character. (Scintilla feature 2330)</summary>
  995. void FormFeed();
  996. /// <summary>
  997. /// Move caret to before first visible character on line.
  998. /// If already there move to first character on line.
  999. /// (Scintilla feature 2331)
  1000. /// </summary>
  1001. void VCHome();
  1002. /// <summary>Like VCHome but extending selection to new caret position. (Scintilla feature 2332)</summary>
  1003. void VCHomeExtend();
  1004. /// <summary>Magnify the displayed text by increasing the sizes by 1 point. (Scintilla feature 2333)</summary>
  1005. void ZoomIn();
  1006. /// <summary>Make the displayed text smaller by decreasing the sizes by 1 point. (Scintilla feature 2334)</summary>
  1007. void ZoomOut();
  1008. /// <summary>Delete the word to the left of the caret. (Scintilla feature 2335)</summary>
  1009. void DelWordLeft();
  1010. /// <summary>Delete the word to the right of the caret. (Scintilla feature 2336)</summary>
  1011. void DelWordRight();
  1012. /// <summary>Delete the word to the right of the caret, but not the trailing non-word characters. (Scintilla feature 2518)</summary>
  1013. void DelWordRightEnd();
  1014. /// <summary>Cut the line containing the caret. (Scintilla feature 2337)</summary>
  1015. void LineCut();
  1016. /// <summary>Delete the line containing the caret. (Scintilla feature 2338)</summary>
  1017. void LineDelete();
  1018. /// <summary>Switch the current line with the previous. (Scintilla feature 2339)</summary>
  1019. void LineTranspose();
  1020. /// <summary>Duplicate the current line. (Scintilla feature 2404)</summary>
  1021. void LineDuplicate();
  1022. /// <summary>Transform the selection to lower case. (Scintilla feature 2340)</summary>
  1023. void LowerCase();
  1024. /// <summary>Transform the selection to upper case. (Scintilla feature 2341)</summary>
  1025. void UpperCase();
  1026. /// <summary>Scroll the document down, keeping the caret visible. (Scintilla feature 2342)</summary>
  1027. void LineScrollDown();
  1028. /// <summary>Scroll the document up, keeping the caret visible. (Scintilla feature 2343)</summary>
  1029. void LineScrollUp();
  1030. /// <summary>
  1031. /// Delete the selection or if no selection, the character before the caret.
  1032. /// Will not delete the character before at the start of a line.
  1033. /// (Scintilla feature 2344)
  1034. /// </summary>
  1035. void DeleteBackNotLine();
  1036. /// <summary>Move caret to first position on display line. (Scintilla feature 2345)</summary>
  1037. void HomeDisplay();
  1038. /// <summary>
  1039. /// Move caret to first position on display line extending selection to
  1040. /// new caret position.
  1041. /// (Scintilla feature 2346)
  1042. /// </summary>
  1043. void HomeDisplayExtend();
  1044. /// <summary>Move caret to last position on display line. (Scintilla feature 2347)</summary>
  1045. void LineEndDisplay();
  1046. /// <summary>
  1047. /// Move caret to last position on display line extending selection to new
  1048. /// caret position.
  1049. /// (Scintilla feature 2348)
  1050. /// </summary>
  1051. void LineEndDisplayExtend();
  1052. /// <summary>
  1053. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  1054. /// except they behave differently when word-wrap is enabled:
  1055. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  1056. /// The difference is that, the cursor is already at the point, it goes on to the start
  1057. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  1058. /// (Scintilla feature 2349)
  1059. /// </summary>
  1060. void HomeWrap();
  1061. /// <summary>
  1062. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  1063. /// except they behave differently when word-wrap is enabled:
  1064. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  1065. /// The difference is that, the cursor is already at the point, it goes on to the start
  1066. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  1067. /// (Scintilla feature 2450)
  1068. /// </summary>
  1069. void HomeWrapExtend();
  1070. /// <summary>
  1071. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  1072. /// except they behave differently when word-wrap is enabled:
  1073. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  1074. /// The difference is that, the cursor is already at the point, it goes on to the start
  1075. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  1076. /// (Scintilla feature 2451)
  1077. /// </summary>
  1078. void LineEndWrap();
  1079. /// <summary>
  1080. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  1081. /// except they behave differently when word-wrap is enabled:
  1082. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  1083. /// The difference is that, the cursor is already at the point, it goes on to the start
  1084. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  1085. /// (Scintilla feature 2452)
  1086. /// </summary>
  1087. void LineEndWrapExtend();
  1088. /// <summary>
  1089. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  1090. /// except they behave differently when word-wrap is enabled:
  1091. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  1092. /// The difference is that, the cursor is already at the point, it goes on to the start
  1093. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  1094. /// (Scintilla feature 2453)
  1095. /// </summary>
  1096. void VCHomeWrap();
  1097. /// <summary>
  1098. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  1099. /// except they behave differently when word-wrap is enabled:
  1100. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  1101. /// The difference is that, the cursor is already at the point, it goes on to the start
  1102. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  1103. /// (Scintilla feature 2454)
  1104. /// </summary>
  1105. void VCHomeWrapExtend();
  1106. /// <summary>Copy the line containing the caret. (Scintilla feature 2455)</summary>
  1107. void LineCopy();
  1108. /// <summary>Move the caret inside current view if it's not there already. (Scintilla feature 2401)</summary>
  1109. void MoveCaretInsideView();
  1110. /// <summary>How many characters are on a line, including end of line characters? (Scintilla feature 2350)</summary>
  1111. int LineLength(int line);
  1112. /// <summary>Highlight the characters at two positions. (Scintilla feature 2351)</summary>
  1113. void BraceHighlight(Position pos1, Position pos2);
  1114. /// <summary>Use specified indicator to highlight matching braces instead of changing their style. (Scintilla feature 2498)</summary>
  1115. void BraceHighlightIndicator(bool useBraceHighlightIndicator, int indicator);
  1116. /// <summary>Highlight the character at a position indicating there is no matching brace. (Scintilla feature 2352)</summary>
  1117. void BraceBadLight(Position pos);
  1118. /// <summary>Use specified indicator to highlight non matching brace instead of changing its style. (Scintilla feature 2499)</summary>
  1119. void BraceBadLightIndicator(bool useBraceBadLightIndicator, int indicator);
  1120. /// <summary>Find the position of a matching brace or INVALID_POSITION if no match. (Scintilla feature 2353)</summary>
  1121. Position BraceMatch(Position pos);
  1122. /// <summary>Are the end of line characters visible? (Scintilla feature 2355)</summary>
  1123. bool GetViewEOL();
  1124. /// <summary>Make the end of line characters visible or invisible. (Scintilla feature 2356)</summary>
  1125. void SetViewEOL(bool visible);
  1126. /// <summary>Retrieve a pointer to the document object. (Scintilla feature 2357)</summary>
  1127. IntPtr GetDocPointer();
  1128. /// <summary>Change the document object used. (Scintilla feature 2358)</summary>
  1129. void SetDocPointer(IntPtr pointer);
  1130. /// <summary>Set which document modification events are sent to the container. (Scintilla feature 2359)</summary>
  1131. void SetModEventMask(int mask);
  1132. /// <summary>Retrieve the column number which text should be kept within. (Scintilla feature 2360)</summary>
  1133. int GetEdgeColumn();
  1134. /// <summary>
  1135. /// Set the column number of the edge.
  1136. /// If text goes past the edge then it is highlighted.
  1137. /// (Scintilla feature 2361)
  1138. /// </summary>
  1139. void SetEdgeColumn(int column);
  1140. /// <summary>Retrieve the edge highlight mode. (Scintilla feature 2362)</summary>
  1141. int GetEdgeMode();
  1142. /// <summary>
  1143. /// The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
  1144. /// goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
  1145. /// (Scintilla feature 2363)
  1146. /// </summary>
  1147. void SetEdgeMode(int mode);
  1148. /// <summary>Retrieve the colour used in edge indication. (Scintilla feature 2364)</summary>
  1149. Colour GetEdgeColour();
  1150. /// <summary>Change the colour used in edge indication. (Scintilla feature 2365)</summary>
  1151. void SetEdgeColour(Colour edgeColour);
  1152. /// <summary>Sets the current caret position to be the search anchor. (Scintilla feature 2366)</summary>
  1153. void SearchAnchor();
  1154. /// <summary>
  1155. /// Find some text starting at the search anchor.
  1156. /// Does not ensure the selection is visible.
  1157. /// (Scintilla feature 2367)
  1158. /// </summary>
  1159. unsafe int SearchNext(int flags, string text);
  1160. /// <summary>
  1161. /// Find some text starting at the search anchor and moving backwards.
  1162. /// Does not ensure the selection is visible.
  1163. /// (Scintilla feature 2368)
  1164. /// </summary>
  1165. unsafe int SearchPrev(int flags, string text);
  1166. /// <summary>Retrieves the number of lines completely visible. (Scintilla feature 2370)</summary>
  1167. int LinesOnScreen();
  1168. /// <summary>
  1169. /// Set whether a pop up menu is displayed automatically when the user presses
  1170. /// the wrong mouse button.
  1171. /// (Scintilla feature 2371)
  1172. /// </summary>
  1173. void UsePopUp(bool allowPopUp);
  1174. /// <summary>Is the selection rectangular? The alternative is the more common stream selection. (Scintilla feature 2372)</summary>
  1175. bool SelectionIsRectangle();
  1176. /// <summary>
  1177. /// Set the zoom level. This number of points is added to the size of all fonts.
  1178. /// It may be positive to magnify or negative to reduce.
  1179. /// (Scintilla feature 2373)
  1180. /// </summary>
  1181. void SetZoom(int zoom);
  1182. /// <summary>Retrieve the zoom level. (Scintilla feature 2374)</summary>
  1183. int GetZoom();
  1184. /// <summary>
  1185. /// Create a new document object.
  1186. /// Starts with reference count of 1 and not selected into editor.
  1187. /// (Scintilla feature 2375)
  1188. /// </summary>
  1189. int CreateDocument();
  1190. /// <summary>Extend life of document. (Scintilla feature 2376)</summary>
  1191. void AddRefDocument(int doc);
  1192. /// <summary>Release a reference to the document, deleting document if it fades to black. (Scintilla feature 2377)</summary>
  1193. void ReleaseDocument(int doc);
  1194. /// <summary>Get which document modification events are sent to the container. (Scintilla feature 2378)</summary>
  1195. int GetModEventMask();
  1196. /// <summary>Change internal focus flag. (Scintilla feature 2380)</summary>
  1197. void SetFocus(bool focus);
  1198. /// <summary>Get internal focus flag. (Scintilla feature 2381)</summary>
  1199. bool GetFocus();
  1200. /// <summary>Change error status - 0 = OK. (Scintilla feature 2382)</summary>
  1201. void SetStatus(int statusCode);
  1202. /// <summary>Get error status. (Scintilla feature 2383)</summary>
  1203. int GetStatus();
  1204. /// <summary>Set whether the mouse is captured when its button is pressed. (Scintilla feature 2384)</summary>
  1205. void SetMouseDownCaptures(bool captures);
  1206. /// <summary>Get whether mouse gets captured. (Scintilla feature 2385)</summary>
  1207. bool GetMouseDownCaptures();
  1208. /// <summary>Sets the cursor to one of the SC_CURSOR* values. (Scintilla feature 2386)</summary>
  1209. void SetCursor(int cursorType);
  1210. /// <summary>Get cursor type. (Scintilla feature 2387)</summary>
  1211. int GetCursor();
  1212. /// <summary>
  1213. /// Change the way control characters are displayed:
  1214. /// If symbol is < 32, keep the drawn way, else, use the given character.
  1215. /// (Scintilla feature 2388)
  1216. /// </summary>
  1217. void SetControlCharSymbol(int symbol);
  1218. /// <summary>Get the way control characters are displayed. (Scintilla feature 2389)</summary>
  1219. int GetControlCharSymbol();
  1220. /// <summary>Move to the previous change in capitalisation. (Scintilla feature 2390)</summary>
  1221. void WordPartLeft();
  1222. /// <summary>
  1223. /// Move to the previous change in capitalisation extending selection
  1224. /// to new caret position.
  1225. /// (Scintilla feature 2391)
  1226. /// </summary>
  1227. void WordPartLeftExtend();
  1228. /// <summary>Move to the change next in capitalisation. (Scintilla feature 2392)</summary>
  1229. void WordPartRight();
  1230. /// <summary>
  1231. /// Move to the next change in capitalisation extending selection
  1232. /// to new caret position.
  1233. /// (Scintilla feature 2393)
  1234. /// </summary>
  1235. void WordPartRightExtend();
  1236. /// <summary>
  1237. /// Set the way the display area is determined when a particular line
  1238. /// is to be moved to by Find, FindNext, GotoLine, etc.
  1239. /// (Scintilla feature 2394)
  1240. /// </summary>
  1241. void SetVisiblePolicy(int visiblePolicy, int visibleSlop);
  1242. /// <summary>Delete back from the current position to the start of the line. (Scintilla feature 2395)</summary>
  1243. void DelLineLeft();
  1244. /// <summary>Delete forwards from the current position to the end of the line. (Scintilla feature 2396)</summary>
  1245. void DelLineRight();
  1246. /// <summary>Get and Set the xOffset (ie, horizontal scroll position). (Scintilla feature 2397)</summary>
  1247. void SetXOffset(int newOffset);
  1248. /// <summary>Get and Set the xOffset (ie, horizontal scroll position). (Scintilla feature 2398)</summary>
  1249. int GetXOffset();
  1250. /// <summary>Set the last x chosen value to be the caret x position. (Scintilla feature 2399)</summary>
  1251. void ChooseCaretX();
  1252. /// <summary>Set the focus to this Scintilla widget. (Scintilla feature 2400)</summary>
  1253. void GrabFocus();
  1254. /// <summary>
  1255. /// Set the way the caret is kept visible when going sideways.
  1256. /// The exclusion zone is given in pixels.
  1257. /// (Scintilla feature 2402)
  1258. /// </summary>
  1259. void SetXCaretPolicy(int caretPolicy, int caretSlop);
  1260. /// <summary>
  1261. /// Set the way the line the caret is on is kept visible.
  1262. /// The exclusion zone is given in lines.
  1263. /// (Scintilla feature 2403)
  1264. /// </summary>
  1265. void SetYCaretPolicy(int caretPolicy, int caretSlop);
  1266. /// <summary>Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). (Scintilla feature 2406)</summary>
  1267. void SetPrintWrapMode(int mode);
  1268. /// <summary>Is printing line wrapped? (Scintilla feature 2407)</summary>
  1269. int GetPrintWrapMode();
  1270. /// <summary>Set a fore colour for active hotspots. (Scintilla feature 2410)</summary>
  1271. void SetHotspotActiveFore(bool useSetting, Colour fore);
  1272. /// <summary>Get the fore colour for active hotspots. (Scintilla feature 2494)</summary>
  1273. Colour GetHotspotActiveFore();
  1274. /// <summary>Set a back colour for active hotspots. (Scintilla feature 2411)</summary>
  1275. void SetHotspotActiveBack(bool useSetting, Colour back);
  1276. /// <summary>Get the back colour for active hotspots. (Scintilla feature 2495)</summary>
  1277. Colour GetHotspotActiveBack();
  1278. /// <summary>Enable / Disable underlining active hotspots. (Scintilla feature 2412)</summary>
  1279. void SetHotspotActiveUnderline(bool underline);
  1280. /// <summary>Get whether underlining for active hotspots. (Scintilla feature 2496)</summary>
  1281. bool GetHotspotActiveUnderline();
  1282. /// <summary>Limit hotspots to single line so hotspots on two lines don't merge. (Scintilla feature 2421)</summary>
  1283. void SetHotspotSingleLine(bool singleLine);
  1284. /// <summary>Get the HotspotSingleLine property (Scintilla feature 2497)</summary>
  1285. bool GetHotspotSingleLine();
  1286. /// <summary>Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2413)</summary>
  1287. void ParaDown();
  1288. /// <summary>Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2414)</summary>
  1289. void ParaDownExtend();
  1290. /// <summary>Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2415)</summary>
  1291. void ParaUp();
  1292. /// <summary>Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2416)</summary>
  1293. void ParaUpExtend();
  1294. /// <summary>
  1295. /// Given a valid document position, return the previous position taking code
  1296. /// page into account. Returns 0 if passed 0.
  1297. /// (Scintilla feature 2417)
  1298. /// </summary>
  1299. Position PositionBefore(Position pos);
  1300. /// <summary>
  1301. /// Given a valid document position, return the next position taking code
  1302. /// page into account. Maximum value returned is the last position in the document.
  1303. /// (Scintilla feature 2418)
  1304. /// </summary>
  1305. Position PositionAfter(Position pos);
  1306. /// <summary>
  1307. /// Given a valid document position, return a position that differs in a number
  1308. /// of characters. Returned value is always between 0 and last position in document.
  1309. /// (Scintilla feature 2670)
  1310. /// </summary>
  1311. Position PositionRelative(Position pos, int relative);
  1312. /// <summary>Copy a range of text to the clipboard. Positions are clipped into the document. (Scintilla feature 2419)</summary>
  1313. void CopyRange(Position start, Position end);
  1314. /// <summary>Copy argument text to the clipboard. (Scintilla feature 2420)</summary>
  1315. unsafe void CopyText(int length, string text);
  1316. /// <summary>
  1317. /// Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
  1318. /// by lines (SC_SEL_LINES).
  1319. /// (Scintilla feature 2422)
  1320. /// </summary>
  1321. void SetSelectionMode(int mode);
  1322. /// <summary>Get the mode of the current selection. (Scintilla feature 2423)</summary>
  1323. int GetSelectionMode();
  1324. /// <summary>Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). (Scintilla feature 2424)</summary>
  1325. Position GetLineSelStartPosition(int line);
  1326. /// <summary>Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). (Scintilla feature 2425)</summary>
  1327. Position GetLineSelEndPosition(int line);
  1328. /// <summary>Move caret down one line, extending rectangular selection to new caret position. (Scintilla feature 2426)</summary>
  1329. void LineDownRectExtend();
  1330. /// <summary>Move caret up one line, extending rectangular selection to new caret position. (Scintilla feature 2427)</summary>
  1331. void LineUpRectExtend();
  1332. /// <summary>Move caret left one character, extending rectangular selection to new caret position. (Scintilla feature 2428)</summary>
  1333. void CharLeftRectExtend();
  1334. /// <summary>Move caret right one character, extending rectangular selection to new caret position. (Scintilla feature 2429)</summary>
  1335. void CharRightRectExtend();
  1336. /// <summary>Move caret to first position on line, extending rectangular selection to new caret position. (Scintilla feature 2430)</summary>
  1337. void HomeRectExtend();
  1338. /// <summary>
  1339. /// Move caret to before first visible character on line.
  1340. /// If already there move to first character on line.
  1341. /// In either case, extend rectangular selection to new caret position.
  1342. /// (Scintilla feature 2431)
  1343. /// </summary>
  1344. void VCHomeRectExtend();
  1345. /// <summary>Move caret to last position on line, extending rectangular selection to new caret position. (Scintilla feature 2432)</summary>
  1346. void LineEndRectExtend();
  1347. /// <summary>Move caret one page up, extending rectangular selection to new caret position. (Scintilla feature 2433)</summary>
  1348. void PageUpRectExtend();
  1349. /// <summary>Move caret one page down, extending rectangular selection to new caret position. (Scintilla feature 2434)</summary>
  1350. void PageDownRectExtend();
  1351. /// <summary>Move caret to top of page, or one page up if already at top of page. (Scintilla feature 2435)</summary>
  1352. void StutteredPageUp();
  1353. /// <summary>Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. (Scintilla feature 2436)</summary>
  1354. void StutteredPageUpExtend();
  1355. /// <summary>Move caret to bottom of page, or one page down if already at bottom of page. (Scintilla feature 2437)</summary>
  1356. void StutteredPageDown();
  1357. /// <summary>Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. (Scintilla feature 2438)</summary>
  1358. void StutteredPageDownExtend();
  1359. /// <summary>Move caret left one word, position cursor at end of word. (Scintilla feature 2439)</summary>
  1360. void WordLeftEnd();
  1361. /// <summary>Move caret left one word, position cursor at end of word, extending selection to new caret position. (Scintilla feature 2440)</summary>
  1362. void WordLeftEndExtend();
  1363. /// <summary>Move caret right one word, position cursor at end of word. (Scintilla feature 2441)</summary>
  1364. void WordRightEnd();
  1365. /// <summary>Move caret right one word, position cursor at end of word, extending selection to new caret position. (Scintilla feature 2442)</summary>
  1366. void WordRightEndExtend();
  1367. /// <summary>
  1368. /// Set the set of characters making up whitespace for when moving or selecting by word.
  1369. /// Should be called after SetWordChars.
  1370. /// (Scintilla feature 2443)
  1371. /// </summary>
  1372. unsafe void SetWhitespaceChars(string characters);
  1373. /// <summary>Get the set of characters making up whitespace for when moving or selecting by word. (Scintilla feature 2647)</summary>
  1374. unsafe string GetWhitespaceChars();
  1375. /// <summary>
  1376. /// Set the set of characters making up punctuation characters
  1377. /// Should be called after SetWordChars.
  1378. /// (Scintilla feature 2648)
  1379. /// </summary>
  1380. unsafe void SetPunctuationChars(string characters);
  1381. /// <summary>Get the set of characters making up punctuation characters (Scintilla feature 2649)</summary>
  1382. unsafe string GetPunctuationChars();
  1383. /// <summary>Reset the set of characters for whitespace and word characters to the defaults. (Scintilla feature 2444)</summary>
  1384. void SetCharsDefault();
  1385. /// <summary>Get currently selected item position in the auto-completion list (Scintilla feature 2445)</summary>
  1386. int AutoCGetCurrent();
  1387. /// <summary>
  1388. /// Get currently selected item text in the auto-completion list
  1389. /// Returns the length of the item text
  1390. /// Result is NUL-terminated.
  1391. /// (Scintilla feature 2610)
  1392. /// </summary>
  1393. unsafe string AutoCGetCurrentText();
  1394. /// <summary>Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. (Scintilla feature 2634)</summary>
  1395. void AutoCSetCaseInsensitiveBehaviour(int behaviour);
  1396. /// <summary>Get auto-completion case insensitive behaviour. (Scintilla feature 2635)</summary>
  1397. int AutoCGetCaseInsensitiveBehaviour();
  1398. /// <summary>Change the effect of autocompleting when there are multiple selections. (Scintilla feature 2636)</summary>
  1399. void AutoCSetMulti(int multi);
  1400. /// <summary>Retrieve the effect of autocompleting when there are multiple selections.. (Scintilla feature 2637)</summary>
  1401. int AutoCGetMulti();
  1402. /// <summary>Set the way autocompletion lists are ordered. (Scintilla feature 2660)</summary>
  1403. void AutoCSetOrder(int order);
  1404. /// <summary>Get the way autocompletion lists are ordered. (Scintilla feature 2661)</summary>
  1405. int AutoCGetOrder();
  1406. /// <summary>Enlarge the document to a particular size of text bytes. (Scintilla feature 2446)</summary>
  1407. void Allocate(int bytes);
  1408. /// <summary>
  1409. /// Returns the target converted to UTF8.
  1410. /// Return the length in bytes.
  1411. /// (Scintilla feature 2447)
  1412. /// </summary>
  1413. unsafe string TargetAsUTF8();
  1414. /// <summary>
  1415. /// Set the length of the utf8 argument for calling EncodedFromUTF8.
  1416. /// Set to -1 and the string will be measured to the first nul.
  1417. /// (Scintilla feature 2448)
  1418. /// </summary>
  1419. void SetLengthForEncode(int bytes);
  1420. /// <summary>
  1421. /// Translates a UTF8 string into the document encoding.
  1422. /// Return the length of the result in bytes.
  1423. /// On error return 0.
  1424. /// (Scintilla feature 2449)
  1425. /// </summary>
  1426. unsafe string EncodedFromUTF8(string utf8);
  1427. /// <summary>
  1428. /// Find the position of a column on a line taking into account tabs and
  1429. /// multi-byte characters. If beyond end of line, return line end position.
  1430. /// (Scintilla feature 2456)
  1431. /// </summary>
  1432. int FindColumn(int line, int column);
  1433. /// <summary>Can the caret preferred x position only be changed by explicit movement commands? (Scintilla feature 2457)</summary>
  1434. int GetCaretSticky();
  1435. /// <summary>Stop the caret preferred x position changing when the user types. (Scintilla feature 2458)</summary>
  1436. void SetCaretSticky(int useCaretStickyBehaviour);
  1437. /// <summary>Switch between sticky and non-sticky: meant to be bound to a key. (Scintilla feature 2459)</summary>
  1438. void ToggleCaretSticky();
  1439. /// <summary>Enable/Disable convert-on-paste for line endings (Scintilla feature 2467)</summary>
  1440. void SetPasteConvertEndings(bool convert);
  1441. /// <summary>Get convert-on-paste setting (Scintilla feature 2468)</summary>
  1442. bool GetPasteConvertEndings();
  1443. /// <summary>Duplicate the selection. If selection empty duplicate the line containing the caret. (Scintilla feature 2469)</summary>
  1444. void SelectionDuplicate();
  1445. /// <summary>Set background alpha of the caret line. (Scintilla feature 2470)</summary>
  1446. void SetCaretLineBackAlpha(int alpha);
  1447. /// <summary>Get the background alpha of the caret line. (Scintilla feature 2471)</summary>
  1448. int GetCaretLineBackAlpha();
  1449. /// <summary>Set the style of the caret to be drawn. (Scintilla feature 2512)</summary>
  1450. void SetCaretStyle(int caretStyle);
  1451. /// <summary>Returns the current style of the caret. (Scintilla feature 2513)</summary>
  1452. int GetCaretStyle();
  1453. /// <summary>Set the indicator used for IndicatorFillRange and IndicatorClearRange (Scintilla feature 2500)</summary>
  1454. void SetIndicatorCurrent(int indicator);
  1455. /// <summary>Get the current indicator (Scintilla feature 2501)</summary>
  1456. int GetIndicatorCurrent();
  1457. /// <summary>Set the value used for IndicatorFillRange (Scintilla feature 2502)</summary>
  1458. void SetIndicatorValue(int value);
  1459. /// <summary>Get the current indicator value (Scintilla feature 2503)</summary>
  1460. int GetIndicatorValue();
  1461. /// <summary>Turn a indicator on over a range. (Scintilla feature 2504)</summary>
  1462. void IndicatorFillRange(int position, int fillLength);
  1463. /// <summary>Turn a indicator off over a range. (Scintilla feature 2505)</summary>
  1464. void IndicatorClearRange(int position, int clearLength);
  1465. /// <summary>Are any indicators present at position? (Scintilla feature 2506)</summary>
  1466. int IndicatorAllOnFor(int position);
  1467. /// <summary>What value does a particular indicator have at at a position? (Scintilla feature 2507)</summary>
  1468. int IndicatorValueAt(int indicator, int position);
  1469. /// <summary>Where does a particular indicator start? (Scintilla feature 2508)</summary>
  1470. int IndicatorStart(int indicator, int position);
  1471. /// <summary>Where does a particular indicator end? (Scintilla feature 2509)</summary>
  1472. int IndicatorEnd(int indicator, int position);
  1473. /// <summary>Set number of entries in position cache (Scintilla feature 2514)</summary>
  1474. void SetPositionCache(int size);
  1475. /// <summary>How many entries are allocated to the position cache? (Scintilla feature 2515)</summary>
  1476. int GetPositionCache();
  1477. /// <summary>Copy the selection, if selection empty copy the line with the caret (Scintilla feature 2519)</summary>
  1478. void CopyAllowLine();
  1479. /// <summary>
  1480. /// Compact the document buffer and return a read-only pointer to the
  1481. /// characters in the document.
  1482. /// (Scintilla feature 2520)
  1483. /// </summary>
  1484. IntPtr GetCharacterPointer();
  1485. /// <summary>
  1486. /// Return a read-only pointer to a range of characters in the document.
  1487. /// May move the gap so that the range is contiguous, but will only move up
  1488. /// to rangeLength bytes.
  1489. /// (Scintilla feature 2643)
  1490. /// </summary>
  1491. IntPtr GetRangePointer(int position, int rangeLength);
  1492. /// <summary>
  1493. /// Return a position which, to avoid performance costs, should not be within
  1494. /// the range of a call to GetRangePointer.
  1495. /// (Scintilla feature 2644)
  1496. /// </summary>
  1497. Position GetGapPosition();
  1498. /// <summary>Set the alpha fill colour of the given indicator. (Scintilla feature 2523)</summary>
  1499. void IndicSetAlpha(int indicator, int alpha);
  1500. /// <summary>Get the alpha fill colour of the given indicator. (Scintilla feature 2524)</summary>
  1501. int IndicGetAlpha(int indicator);
  1502. /// <summary>Set the alpha outline colour of the given indicator. (Scintilla feature 2558)</summary>
  1503. void IndicSetOutlineAlpha(int indicator, int alpha);
  1504. /// <summary>Get the alpha outline colour of the given indicator. (Scintilla feature 2559)</summary>
  1505. int IndicGetOutlineAlpha(int indicator);
  1506. /// <summary>Set extra ascent for each line (Scintilla feature 2525)</summary>
  1507. void SetExtraAscent(int extraAscent);
  1508. /// <summary>Get extra ascent for each line (Scintilla feature 2526)</summary>
  1509. int GetExtraAscent();
  1510. /// <summary>Set extra descent for each line (Scintilla feature 2527)</summary>
  1511. void SetExtraDescent(int extraDescent);
  1512. /// <summary>Get extra descent for each line (Scintilla feature 2528)</summary>
  1513. int GetExtraDescent();
  1514. /// <summary>Which symbol was defined for markerNumber with MarkerDefine (Scintilla feature 2529)</summary>
  1515. int MarkerSymbolDefined(int markerNumber);
  1516. /// <summary>Set the text in the text margin for a line (Scintilla feature 2530)</summary>
  1517. unsafe void MarginSetText(int line, string text);
  1518. /// <summary>Get the text in the text margin for a line (Scintilla feature 2531)</summary>
  1519. unsafe string MarginGetText(int line);
  1520. /// <summary>Set the style number for the text margin for a line (Scintilla feature 2532)</summary>
  1521. void MarginSetStyle(int line, int style);
  1522. /// <summary>Get the style number for the text margin for a line (Scintilla feature 2533)</summary>
  1523. int MarginGetStyle(int line);
  1524. /// <summary>Set the style in the text margin for a line (Scintilla feature 2534)</summary>
  1525. unsafe void MarginSetStyles(int line, string styles);
  1526. /// <summary>Get the styles in the text margin for a line (Scintilla feature 2535)</summary>
  1527. unsafe string MarginGetStyles(int line);
  1528. /// <summary>Clear the margin text on all lines (Scintilla feature 2536)</summary>
  1529. void MarginTextClearAll();
  1530. /// <summary>Get the start of the range of style numbers used for margin text (Scintilla feature 2537)</summary>
  1531. void MarginSetStyleOffset(int style);
  1532. /// <summary>Get the start of the range of style numbers used for margin text (Scintilla feature 2538)</summary>
  1533. int MarginGetStyleOffset();
  1534. /// <summary>Set the margin options. (Scintilla feature 2539)</summary>
  1535. void SetMarginOptions(int marginOptions);
  1536. /// <summary>Get the margin options. (Scintilla feature 2557)</summary>
  1537. int GetMarginOptions();
  1538. /// <summary>Set the annotation text for a line (Scintilla feature 2540)</summary>
  1539. unsafe void AnnotationSetText(int line, string text);
  1540. /// <summary>Get the annotation text for a line (Scintilla feature 2541)</summary>
  1541. unsafe string AnnotationGetText(int line);
  1542. /// <summary>Set the style number for the annotations for a line (Scintilla feature 2542)</summary>
  1543. void AnnotationSetStyle(int line, int style);
  1544. /// <summary>Get the style number for the annotations for a line (Scintilla feature 2543)</summary>
  1545. int AnnotationGetStyle(int line);
  1546. /// <summary>Set the annotation styles for a line (Scintilla feature 2544)</summary>
  1547. unsafe void AnnotationSetStyles(int line, string styles);
  1548. /// <summary>Get the annotation styles for a line (Scintilla feature 2545)</summary>
  1549. unsafe string AnnotationGetStyles(int line);
  1550. /// <summary>Get the number of annotation lines for a line (Scintilla feature 2546)</summary>
  1551. int AnnotationGetLines(int line);
  1552. /// <summary>Clear the annotations from all lines (Scintilla feature 2547)</summary>
  1553. void AnnotationClearAll();
  1554. /// <summary>Set the visibility for the annotations for a view (Scintilla feature 2548)</summary>
  1555. void AnnotationSetVisible(int visible);
  1556. /// <summary>Get the visibility for the annotations for a view (Scintilla feature 2549)</summary>
  1557. int AnnotationGetVisible();
  1558. /// <summary>Get the start of the range of style numbers used for annotations (Scintilla feature 2550)</summary>
  1559. void AnnotationSetStyleOffset(int style);
  1560. /// <summary>Get the start of the range of style numbers used for annotations (Scintilla feature 2551)</summary>
  1561. int AnnotationGetStyleOffset();
  1562. /// <summary>Release all extended (>255) style numbers (Scintilla feature 2552)</summary>
  1563. void ReleaseAllExtendedStyles();
  1564. /// <summary>Allocate some extended (>255) style numbers and return the start of the range (Scintilla feature 2553)</summary>
  1565. int AllocateExtendedStyles(int numberStyles);
  1566. /// <summary>Add a container action to the undo stack (Scintilla feature 2560)</summary>
  1567. void AddUndoAction(int token, int flags);
  1568. /// <summary>Find the position of a character from a point within the window. (Scintilla feature 2561)</summary>
  1569. Position CharPositionFromPoint(int x, int y);
  1570. /// <summary>
  1571. /// Find the position of a character from a point within the window.
  1572. /// Return INVALID_POSITION if not close to text.
  1573. /// (Scintilla feature 2562)
  1574. /// </summary>
  1575. Position CharPositionFromPointClose(int x, int y);
  1576. /// <summary>Set whether switching to rectangular mode while selecting with the mouse is allowed. (Scintilla feature 2668)</summary>
  1577. void SetMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch);
  1578. /// <summary>Whether switching to rectangular mode while selecting with the mouse is allowed. (Scintilla feature 2669)</summary>
  1579. bool GetMouseSelectionRectangularSwitch();
  1580. /// <summary>Set whether multiple selections can be made (Scintilla feature 2563)</summary>
  1581. void SetMultipleSelection(bool multipleSelection);
  1582. /// <summary>Whether multiple selections can be made (Scintilla feature 2564)</summary>
  1583. bool GetMultipleSelection();
  1584. /// <summary>Set whether typing can be performed into multiple selections (Scintilla feature 2565)</summary>
  1585. void SetAdditionalSelectionTyping(bool additionalSelectionTyping);
  1586. /// <summary>Whether typing can be performed into multiple selections (Scintilla feature 2566)</summary>
  1587. bool GetAdditionalSelectionTyping();
  1588. /// <summary>Set whether additional carets will blink (Scintilla feature 2567)</summary>
  1589. void SetAdditionalCaretsBlink(bool additionalCaretsBlink);
  1590. /// <summary>Whether additional carets will blink (Scintilla feature 2568)</summary>
  1591. bool GetAdditionalCaretsBlink();
  1592. /// <summary>Set whether additional carets are visible (Scintilla feature 2608)</summary>
  1593. void SetAdditionalCaretsVisible(bool additionalCaretsBlink);
  1594. /// <summary>Whether additional carets are visible (Scintilla feature 2609)</summary>
  1595. bool GetAdditionalCaretsVisible();
  1596. /// <summary>How many selections are there? (Scintilla feature 2570)</summary>
  1597. int GetSelections();
  1598. /// <summary>Is every selected range empty? (Scintilla feature 2650)</summary>
  1599. bool GetSelectionEmpty();
  1600. /// <summary>Clear selections to a single empty stream selection (Scintilla feature 2571)</summary>
  1601. void ClearSelections();
  1602. /// <summary>Set a simple selection (Scintilla feature 2572)</summary>
  1603. int SetSelection(int caret, int anchor);
  1604. /// <summary>Add a selection (Scintilla feature 2573)</summary>
  1605. int AddSelection(int caret, int anchor);
  1606. /// <summary>Drop one selection (Scintilla feature 2671)</summary>
  1607. void DropSelectionN(int selection);
  1608. /// <summary>Set the main selection (Scintilla feature 2574)</summary>
  1609. void SetMainSelection(int selection);
  1610. /// <summary>Which selection is the main selection (Scintilla feature 2575)</summary>
  1611. int GetMainSelection();
  1612. /// <summary>Which selection is the main selection (Scintilla feature 2576)</summary>
  1613. void SetSelectionNCaret(int selection, Position pos);
  1614. /// <summary>Which selection is the main selection (Scintilla feature 2577)</summary>
  1615. Position GetSelectionNCaret(int selection);
  1616. /// <summary>Which selection is the main selection (Scintilla feature 2578)</summary>
  1617. void SetSelectionNAnchor(int selection, Position posAnchor);
  1618. /// <summary>Which selection is the main selection (Scintilla feature 2579)</summary>
  1619. Position GetSelectionNAnchor(int selection);
  1620. /// <summary>Which selection is the main selection (Scintilla feature 2580)</summary>
  1621. void SetSelectionNCaretVirtualSpace(int selection, int space);
  1622. /// <summary>Which selection is the main selection (Scintilla feature 2581)</summary>
  1623. int GetSelectionNCaretVirtualSpace(int selection);
  1624. /// <summary>Which selection is the main selection (Scintilla feature 2582)</summary>
  1625. void SetSelectionNAnchorVirtualSpace(int selection, int space);
  1626. /// <summary>Which selection is the main selection (Scintilla feature 2583)</summary>
  1627. int GetSelectionNAnchorVirtualSpace(int selection);
  1628. /// <summary>Sets the position that starts the selection - this becomes the anchor. (Scintilla feature 2584)</summary>
  1629. void SetSelectionNStart(int selection, Position pos);
  1630. /// <summary>Returns the position at the start of the selection. (Scintilla feature 2585)</summary>
  1631. Position GetSelectionNStart(int selection);
  1632. /// <summary>Sets the position that ends the selection - this becomes the currentPosition. (Scintilla feature 2586)</summary>
  1633. void SetSelectionNEnd(int selection, Position pos);
  1634. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2587)</summary>
  1635. Position GetSelectionNEnd(int selection);
  1636. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2588)</summary>
  1637. void SetRectangularSelectionCaret(Position pos);
  1638. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2589)</summary>
  1639. Position GetRectangularSelectionCaret();
  1640. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2590)</summary>
  1641. void SetRectangularSelectionAnchor(Position posAnchor);
  1642. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2591)</summary>
  1643. Position GetRectangularSelectionAnchor();
  1644. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2592)</summary>
  1645. void SetRectangularSelectionCaretVirtualSpace(int space);
  1646. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2593)</summary>
  1647. int GetRectangularSelectionCaretVirtualSpace();
  1648. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2594)</summary>
  1649. void SetRectangularSelectionAnchorVirtualSpace(int space);
  1650. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2595)</summary>
  1651. int GetRectangularSelectionAnchorVirtualSpace();
  1652. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2596)</summary>
  1653. void SetVirtualSpaceOptions(int virtualSpaceOptions);
  1654. /// <summary>Returns the position at the end of the selection. (Scintilla feature 2597)</summary>
  1655. int GetVirtualSpaceOptions();
  1656. /// <summary>
  1657. /// On GTK+, allow selecting the modifier key to use for mouse-based
  1658. /// rectangular selection. Often the window manager requires Alt+Mouse Drag
  1659. /// for moving windows.
  1660. /// Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.
  1661. /// (Scintilla feature 2598)
  1662. /// </summary>
  1663. void SetRectangularSelectionModifier(int modifier);
  1664. /// <summary>Get the modifier key used for rectangular selection. (Scintilla feature 2599)</summary>
  1665. int GetRectangularSelectionModifier();
  1666. /// <summary>
  1667. /// Set the foreground colour of additional selections.
  1668. /// Must have previously called SetSelFore with non-zero first argument for this to have an effect.
  1669. /// (Scintilla feature 2600)
  1670. /// </summary>
  1671. void SetAdditionalSelFore(Colour fore);
  1672. /// <summary>
  1673. /// Set the background colour of additional selections.
  1674. /// Must have previously called SetSelBack with non-zero first argument for this to have an effect.
  1675. /// (Scintilla feature 2601)
  1676. /// </summary>
  1677. void SetAdditionalSelBack(Colour back);
  1678. /// <summary>Set the alpha of the selection. (Scintilla feature 2602)</summary>
  1679. void SetAdditionalSelAlpha(int alpha);
  1680. /// <summary>Get the alpha of the selection. (Scintilla feature 2603)</summary>
  1681. int GetAdditionalSelAlpha();
  1682. /// <summary>Set the foreground colour of additional carets. (Scintilla feature 2604)</summary>
  1683. void SetAdditionalCaretFore(Colour fore);
  1684. /// <summary>Get the foreground colour of additional carets. (Scintilla feature 2605)</summary>
  1685. Colour GetAdditionalCaretFore();
  1686. /// <summary>Set the main selection to the next selection. (Scintilla feature 2606)</summary>
  1687. void RotateSelection();
  1688. /// <summary>Swap that caret and anchor of the main selection. (Scintilla feature 2607)</summary>
  1689. void SwapMainAnchorCaret();
  1690. /// <summary>
  1691. /// Indicate that the internal state of a lexer has changed over a range and therefore
  1692. /// there may be a need to redraw.
  1693. /// (Scintilla feature 2617)
  1694. /// </summary>
  1695. int ChangeLexerState(Position start, Position end);
  1696. /// <summary>
  1697. /// Find the next line at or after lineStart that is a contracted fold header line.
  1698. /// Return -1 when no more lines.
  1699. /// (Scintilla feature 2618)
  1700. /// </summary>
  1701. int ContractedFoldNext(int lineStart);
  1702. /// <summary>Centre current line in window. (Scintilla feature 2619)</summary>
  1703. void VerticalCentreCaret();
  1704. /// <summary>Move the selected lines up one line, shifting the line above after the selection (Scintilla feature 2620)</summary>
  1705. void MoveSelectedLinesUp();
  1706. /// <summary>Move the selected lines down one line, shifting the line below before the selection (Scintilla feature 2621)</summary>
  1707. void MoveSelectedLinesDown();
  1708. /// <summary>Set the identifier reported as IdFrom in notification messages. (Scintilla feature 2622)</summary>
  1709. void SetIdentifier(int identifier);
  1710. /// <summary>Get the identifier. (Scintilla feature 2623)</summary>
  1711. int GetIdentifier();
  1712. /// <summary>Set the width for future RGBA image data. (Scintilla feature 2624)</summary>
  1713. void RGBAImageSetWidth(int width);
  1714. /// <summary>Set the height for future RGBA image data. (Scintilla feature 2625)</summary>
  1715. void RGBAImageSetHeight(int height);
  1716. /// <summary>Set the scale factor in percent for future RGBA image data. (Scintilla feature 2651)</summary>
  1717. void RGBAImageSetScale(int scalePercent);
  1718. /// <summary>
  1719. /// Define a marker from RGBA data.
  1720. /// It has the width and height from RGBAImageSetWidth/Height
  1721. /// (Scintilla feature 2626)
  1722. /// </summary>
  1723. unsafe void MarkerDefineRGBAImage(int markerNumber, string pixels);
  1724. /// <summary>
  1725. /// Register an RGBA image for use in autocompletion lists.
  1726. /// It has the width and height from RGBAImageSetWidth/Height
  1727. /// (Scintilla feature 2627)
  1728. /// </summary>
  1729. unsafe void RegisterRGBAImage(int type, string pixels);
  1730. /// <summary>Scroll to start of document. (Scintilla feature 2628)</summary>
  1731. void ScrollToStart();
  1732. /// <summary>Scroll to end of document. (Scintilla feature 2629)</summary>
  1733. void ScrollToEnd();
  1734. /// <summary>Set the technology used. (Scintilla feature 2630)</summary>
  1735. void SetTechnology(int technology);
  1736. /// <summary>Get the tech. (Scintilla feature 2631)</summary>
  1737. int GetTechnology();
  1738. /// <summary>Create an ILoader*. (Scintilla feature 2632)</summary>
  1739. int CreateLoader(int bytes);
  1740. /// <summary>On OS X, show a find indicator. (Scintilla feature 2640)</summary>
  1741. void FindIndicatorShow(Position start, Position end);
  1742. /// <summary>On OS X, flash a find indicator, then fade out. (Scintilla feature 2641)</summary>
  1743. void FindIndicatorFlash(Position start, Position end);
  1744. /// <summary>On OS X, hide the find indicator. (Scintilla feature 2642)</summary>
  1745. void FindIndicatorHide();
  1746. /// <summary>
  1747. /// Move caret to before first visible character on display line.
  1748. /// If already there move to first character on display line.
  1749. /// (Scintilla feature 2652)
  1750. /// </summary>
  1751. void VCHomeDisplay();
  1752. /// <summary>Like VCHomeDisplay but extending selection to new caret position. (Scintilla feature 2653)</summary>
  1753. void VCHomeDisplayExtend();
  1754. /// <summary>Is the caret line always visible? (Scintilla feature 2654)</summary>
  1755. bool GetCaretLineVisibleAlways();
  1756. /// <summary>Sets the caret line to always visible. (Scintilla feature 2655)</summary>
  1757. void SetCaretLineVisibleAlways(bool alwaysVisible);
  1758. /// <summary>Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding. (Scintilla feature 2656)</summary>
  1759. void SetLineEndTypesAllowed(int lineEndBitSet);
  1760. /// <summary>Get the line end types currently allowed. (Scintilla feature 2657)</summary>
  1761. int GetLineEndTypesAllowed();
  1762. /// <summary>Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation. (Scintilla feature 2658)</summary>
  1763. int GetLineEndTypesActive();
  1764. /// <summary>Set the way a character is drawn. (Scintilla feature 2665)</summary>
  1765. unsafe void SetRepresentation(string encodedCharacter, string representation);
  1766. /// <summary>
  1767. /// Set the way a character is drawn.
  1768. /// Result is NUL-terminated.
  1769. /// (Scintilla feature 2666)
  1770. /// </summary>
  1771. unsafe string GetRepresentation(string encodedCharacter);
  1772. /// <summary>Remove a character representation. (Scintilla feature 2667)</summary>
  1773. unsafe void ClearRepresentation(string encodedCharacter);
  1774. /// <summary>Start notifying the container of all key presses and commands. (Scintilla feature 3001)</summary>
  1775. void StartRecord();
  1776. /// <summary>Stop notifying the container of all key presses and commands. (Scintilla feature 3002)</summary>
  1777. void StopRecord();
  1778. /// <summary>Set the lexing language of the document. (Scintilla feature 4001)</summary>
  1779. void SetLexer(int lexer);
  1780. /// <summary>Retrieve the lexing language of the document. (Scintilla feature 4002)</summary>
  1781. int GetLexer();
  1782. /// <summary>Colourise a segment of the document using the current lexing language. (Scintilla feature 4003)</summary>
  1783. void Colourise(Position start, Position end);
  1784. /// <summary>Set up a value that may be used by a lexer for some optional feature. (Scintilla feature 4004)</summary>
  1785. unsafe void SetProperty(string key, string value);
  1786. /// <summary>Set up the key words used by the lexer. (Scintilla feature 4005)</summary>
  1787. unsafe void SetKeyWords(int keywordSet, string keyWords);
  1788. /// <summary>Set the lexing language of the document based on string name. (Scintilla feature 4006)</summary>
  1789. unsafe void SetLexerLanguage(string language);
  1790. /// <summary>Load a lexer library (dll / so). (Scintilla feature 4007)</summary>
  1791. unsafe void LoadLexerLibrary(string path);
  1792. /// <summary>
  1793. /// Retrieve a "property" value previously set with SetProperty.
  1794. /// Result is NUL-terminated.
  1795. /// (Scintilla feature 4008)
  1796. /// </summary>
  1797. unsafe string GetProperty(string key);
  1798. /// <summary>
  1799. /// Retrieve a "property" value previously set with SetProperty,
  1800. /// with "$()" variable replacement on returned buffer.
  1801. /// Result is NUL-terminated.
  1802. /// (Scintilla feature 4009)
  1803. /// </summary>
  1804. unsafe string GetPropertyExpanded(string key);
  1805. /// <summary>
  1806. /// Retrieve a "property" value previously set with SetProperty,
  1807. /// interpreted as an int AFTER any "$()" variable replacement.
  1808. /// (Scintilla feature 4010)
  1809. /// </summary>
  1810. unsafe int GetPropertyInt(string key);
  1811. /// <summary>Retrieve the number of bits the current lexer needs for styling. (Scintilla feature 4011)</summary>
  1812. int GetStyleBitsNeeded();
  1813. /// <summary>
  1814. /// Retrieve the name of the lexer.
  1815. /// Return the length of the text.
  1816. /// Result is NUL-terminated.
  1817. /// (Scintilla feature 4012)
  1818. /// </summary>
  1819. unsafe string GetLexerLanguage();
  1820. /// <summary>For private communication between an application and a known lexer. (Scintilla feature 4013)</summary>
  1821. int PrivateLexerCall(int operation, int pointer);
  1822. /// <summary>
  1823. /// Retrieve a '\n' separated list of properties understood by the current lexer.
  1824. /// Result is NUL-terminated.
  1825. /// (Scintilla feature 4014)
  1826. /// </summary>
  1827. unsafe string PropertyNames();
  1828. /// <summary>Retrieve the type of a property. (Scintilla feature 4015)</summary>
  1829. unsafe int PropertyType(string name);
  1830. /// <summary>
  1831. /// Describe a property.
  1832. /// Result is NUL-terminated.
  1833. /// (Scintilla feature 4016)
  1834. /// </summary>
  1835. unsafe string DescribeProperty(string name);
  1836. /// <summary>
  1837. /// Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
  1838. /// Result is NUL-terminated.
  1839. /// (Scintilla feature 4017)
  1840. /// </summary>
  1841. unsafe string DescribeKeyWordSets();
  1842. /// <summary>
  1843. /// Bit set of LineEndType enumertion for which line ends beyond the standard
  1844. /// LF, CR, and CRLF are supported by the lexer.
  1845. /// (Scintilla feature 4018)
  1846. /// </summary>
  1847. int GetLineEndTypesSupported();
  1848. /// <summary>Allocate a set of sub styles for a particular base style, returning start of range (Scintilla feature 4020)</summary>
  1849. int AllocateSubStyles(int styleBase, int numberStyles);
  1850. /// <summary>The starting style number for the sub styles associated with a base style (Scintilla feature 4021)</summary>
  1851. int GetSubStylesStart(int styleBase);
  1852. /// <summary>The number of sub styles associated with a base style (Scintilla feature 4022)</summary>
  1853. int GetSubStylesLength(int styleBase);
  1854. /// <summary>For a sub style, return the base style, else return the argument. (Scintilla feature 4027)</summary>
  1855. int GetStyleFromSubStyle(int subStyle);
  1856. /// <summary>For a secondary style, return the primary style, else return the argument. (Scintilla feature 4028)</summary>
  1857. int GetPrimaryStyleFromStyle(int style);
  1858. /// <summary>Free allocated sub styles (Scintilla feature 4023)</summary>
  1859. void FreeSubStyles();
  1860. /// <summary>Set the identifiers that are shown in a particular style (Scintilla feature 4024)</summary>
  1861. unsafe void SetIdentifiers(int style, string identifiers);
  1862. /// <summary>
  1863. /// Where styles are duplicated by a feature such as active/inactive code
  1864. /// return the distance between the two types.
  1865. /// (Scintilla feature 4025)
  1866. /// </summary>
  1867. int DistanceToSecondaryStyles();
  1868. /// <summary>
  1869. /// Get the set of base styles that can be extended with sub styles
  1870. /// Result is NUL-terminated.
  1871. /// (Scintilla feature 4026)
  1872. /// </summary>
  1873. unsafe string GetSubStyleBases();
  1874. /// <summary>
  1875. /// Deprecated in 2.30
  1876. /// In palette mode?
  1877. /// (Scintilla feature 2139)
  1878. /// </summary>
  1879. bool GetUsePalette();
  1880. /// <summary>
  1881. /// In palette mode, Scintilla uses the environment's palette calls to display
  1882. /// more colours. This may lead to ugly displays.
  1883. /// (Scintilla feature 2039)
  1884. /// </summary>
  1885. void SetUsePalette(bool usePalette);
  1886. /// <summary>
  1887. /// Deprecated in 3.5.5
  1888. /// Always interpret keyboard input as Unicode
  1889. /// (Scintilla feature 2521)
  1890. /// </summary>
  1891. void SetKeysUnicode(bool keysUnicode);
  1892. /// <summary>Are keys always interpreted as Unicode? (Scintilla feature 2522)</summary>
  1893. bool GetKeysUnicode();
  1894. /* --Autogenerated -- end of section automatically generated from Scintilla.iface */
  1895. }
  1896. }