// NPP plugin platform for .Net v0.94.00 by Kasper B. Graversen etc. using System; using static NppChnConvPlugin.NppPluginInfrastructure.Win32; namespace NppChnConvPlugin.NppPluginInfrastructure { /// /// This it the plugin-writers primary interface to Notepad++/Scintilla. /// It takes away all the complexity with command numbers and Int-pointer casting. /// /// See http://www.scintilla.org/ScintillaDoc.html for further details. /// public interface IScintillaGateway { /// /// Change the Scintilla window handle for this Gateway /// and return the previous handle for potentially final updates. /// /// /// IntPtr SetScintillaHandle(IntPtr newHandle); /// /// Switch the handle between main and second window handle. /// void SwitchScintillaHandle(); /// /// Return the current Scintilla window handle /// /// IntPtr GetScintillaHandle(); IntPtr CurrentBufferID { get; set; } int GetSelectionLength(); void AppendTextAndMoveCursor(string text); void InsertTextAndMoveCursor(string text); void SelectCurrentLine(); void ClearSelectionToCursor(); /// /// Get the current line from the current position /// int GetCurrentLineNumber(); /// /// Get the scroll information for the current Scintilla window. /// /// Arguments for the scroll information such as tracking /// Which scroll bar information are you looking for /// A ScrollInfo struct with information of the current scroll state ScrollInfo GetScrollInfo(ScrollInfoMask mask = ScrollInfoMask.SIF_ALL, ScrollInfoBar scrollBar = ScrollInfoBar.SB_BOTH); /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ /// Add text to the document at current position. (Scintilla feature 2001) unsafe void AddText(int length, string text); /// Add array of cells to document. (Scintilla feature 2002) unsafe void AddStyledText(int length, Cells c); /// Insert string at a position. (Scintilla feature 2003) unsafe void InsertText(Position pos, string text); /// Change the text that is being inserted in response to SC_MOD_INSERTCHECK (Scintilla feature 2672) unsafe void ChangeInsertion(int length, string text); /// Delete all text in the document. (Scintilla feature 2004) void ClearAll(); /// Delete a range of text in the document. (Scintilla feature 2645) void DeleteRange(Position pos, int deleteLength); /// Set all style bytes to 0, remove all folding information. (Scintilla feature 2005) void ClearDocumentStyle(); /// Returns the number of bytes in the document. (Scintilla feature 2006) int GetLength(); /// Returns the character byte at the position. (Scintilla feature 2007) int GetCharAt(Position pos); /// Returns the position of the caret. (Scintilla feature 2008) Position GetCurrentPos(); /// Returns the position of the opposite end of the selection to the caret. (Scintilla feature 2009) Position GetAnchor(); /// Returns the style byte at the position. (Scintilla feature 2010) int GetStyleAt(Position pos); /// Redoes the next action on the undo history. (Scintilla feature 2011) void Redo(); /// /// Choose between collecting actions into the undo /// history and discarding them. /// (Scintilla feature 2012) /// void SetUndoCollection(bool collectUndo); /// Select all the text in the document. (Scintilla feature 2013) void SelectAll(); /// /// Remember the current position in the undo history as the position /// at which the document was saved. /// (Scintilla feature 2014) /// void SetSavePoint(); /// /// Retrieve a buffer of cells. /// Returns the number of bytes in the buffer not including terminating NULs. /// (Scintilla feature 2015) /// int GetStyledText(TextRange tr); /// Are there any redoable actions in the undo history? (Scintilla feature 2016) bool CanRedo(); /// Retrieve the line number at which a particular marker is located. (Scintilla feature 2017) int MarkerLineFromHandle(int handle); /// Delete a marker. (Scintilla feature 2018) void MarkerDeleteHandle(int handle); /// Is undo history being collected? (Scintilla feature 2019) bool GetUndoCollection(); /// /// Are white space characters currently visible? /// Returns one of SCWS_* constants. /// (Scintilla feature 2020) /// int GetViewWS(); /// Make white space characters invisible, always visible or visible outside indentation. (Scintilla feature 2021) void SetViewWS(int viewWS); /// Find the position from a point within the window. (Scintilla feature 2022) Position PositionFromPoint(int x, int y); /// /// Find the position from a point within the window but return /// INVALID_POSITION if not close to text. /// (Scintilla feature 2023) /// Position PositionFromPointClose(int x, int y); /// Set caret to start of a line and ensure it is visible. (Scintilla feature 2024) void GotoLine(int line); /// Set caret to a position and ensure it is visible. (Scintilla feature 2025) void GotoPos(Position pos); /// /// Set the selection anchor to a position. The anchor is the opposite /// end of the selection from the caret. /// (Scintilla feature 2026) /// void SetAnchor(Position posAnchor); /// /// Retrieve the text of the line containing the caret. /// Returns the index of the caret on the line. /// Result is NUL-terminated. /// (Scintilla feature 2027) /// unsafe string GetCurLine(int length); /// Retrieve the position of the last correctly styled character. (Scintilla feature 2028) Position GetEndStyled(); /// Convert all line endings in the document to one mode. (Scintilla feature 2029) void ConvertEOLs(int eolMode); /// Retrieve the current end of line mode - one of CRLF, CR, or LF. (Scintilla feature 2030) int GetEOLMode(); /// Set the current end of line mode. (Scintilla feature 2031) void SetEOLMode(int eolMode); /// /// Set the current styling position to pos and the styling mask to mask. /// The styling mask can be used to protect some bits in each styling byte from modification. /// (Scintilla feature 2032) /// void StartStyling(Position pos, int mask); /// /// Change style from current styling position for length characters to a style /// and move the current styling position to after this newly styled segment. /// (Scintilla feature 2033) /// void SetStyling(int length, int style); /// Is drawing done first into a buffer or direct to the screen? (Scintilla feature 2034) bool GetBufferedDraw(); /// /// If drawing is buffered then each line of text is drawn into a bitmap buffer /// before drawing it to the screen to avoid flicker. /// (Scintilla feature 2035) /// void SetBufferedDraw(bool buffered); /// Change the visible size of a tab to be a multiple of the width of a space character. (Scintilla feature 2036) void SetTabWidth(int tabWidth); /// Retrieve the visible size of a tab. (Scintilla feature 2121) int GetTabWidth(); /// Clear explicit tabstops on a line. (Scintilla feature 2675) void ClearTabStops(int line); /// Add an explicit tab stop for a line. (Scintilla feature 2676) void AddTabStop(int line, int x); /// Find the next explicit tab stop position on a line after a position. (Scintilla feature 2677) int GetNextTabStop(int line, int x); /// /// Set the code page used to interpret the bytes of the document as characters. /// The SC_CP_UTF8 value can be used to enter Unicode mode. /// (Scintilla feature 2037) /// void SetCodePage(int codePage); /// Is the IME displayed in a winow or inline? (Scintilla feature 2678) int GetIMEInteraction(); /// Choose to display the the IME in a winow or inline. (Scintilla feature 2679) void SetIMEInteraction(int imeInteraction); /// Set the symbol used for a particular marker number. (Scintilla feature 2040) void MarkerDefine(int markerNumber, int markerSymbol); /// Set the foreground colour used for a particular marker number. (Scintilla feature 2041) void MarkerSetFore(int markerNumber, Colour fore); /// Set the background colour used for a particular marker number. (Scintilla feature 2042) void MarkerSetBack(int markerNumber, Colour back); /// Set the background colour used for a particular marker number when its folding block is selected. (Scintilla feature 2292) void MarkerSetBackSelected(int markerNumber, Colour back); /// Enable/disable highlight for current folding bloc (smallest one that contains the caret) (Scintilla feature 2293) void MarkerEnableHighlight(bool enabled); /// Add a marker to a line, returning an ID which can be used to find or delete the marker. (Scintilla feature 2043) int MarkerAdd(int line, int markerNumber); /// Delete a marker from a line. (Scintilla feature 2044) void MarkerDelete(int line, int markerNumber); /// Delete all markers with a particular number from all lines. (Scintilla feature 2045) void MarkerDeleteAll(int markerNumber); /// Get a bit mask of all the markers set on a line. (Scintilla feature 2046) int MarkerGet(int line); /// /// Find the next line at or after lineStart that includes a marker in mask. /// Return -1 when no more lines. /// (Scintilla feature 2047) /// int MarkerNext(int lineStart, int markerMask); /// Find the previous line before lineStart that includes a marker in mask. (Scintilla feature 2048) int MarkerPrevious(int lineStart, int markerMask); /// Define a marker from a pixmap. (Scintilla feature 2049) unsafe void MarkerDefinePixmap(int markerNumber, string pixmap); /// Add a set of markers to a line. (Scintilla feature 2466) void MarkerAddSet(int line, int set); /// Set the alpha used for a marker that is drawn in the text area, not the margin. (Scintilla feature 2476) void MarkerSetAlpha(int markerNumber, int alpha); /// Set a margin to be either numeric or symbolic. (Scintilla feature 2240) void SetMarginTypeN(int margin, int marginType); /// Retrieve the type of a margin. (Scintilla feature 2241) int GetMarginTypeN(int margin); /// Set the width of a margin to a width expressed in pixels. (Scintilla feature 2242) void SetMarginWidthN(int margin, int pixelWidth); /// Retrieve the width of a margin in pixels. (Scintilla feature 2243) int GetMarginWidthN(int margin); /// Set a mask that determines which markers are displayed in a margin. (Scintilla feature 2244) void SetMarginMaskN(int margin, int mask); /// Retrieve the marker mask of a margin. (Scintilla feature 2245) int GetMarginMaskN(int margin); /// Make a margin sensitive or insensitive to mouse clicks. (Scintilla feature 2246) void SetMarginSensitiveN(int margin, bool sensitive); /// Retrieve the mouse click sensitivity of a margin. (Scintilla feature 2247) bool GetMarginSensitiveN(int margin); /// Set the cursor shown when the mouse is inside a margin. (Scintilla feature 2248) void SetMarginCursorN(int margin, int cursor); /// Retrieve the cursor shown in a margin. (Scintilla feature 2249) int GetMarginCursorN(int margin); /// Clear all the styles and make equivalent to the global default style. (Scintilla feature 2050) void StyleClearAll(); /// Set the foreground colour of a style. (Scintilla feature 2051) void StyleSetFore(int style, Colour fore); /// Set the background colour of a style. (Scintilla feature 2052) void StyleSetBack(int style, Colour back); /// Set a style to be bold or not. (Scintilla feature 2053) void StyleSetBold(int style, bool bold); /// Set a style to be italic or not. (Scintilla feature 2054) void StyleSetItalic(int style, bool italic); /// Set the size of characters of a style. (Scintilla feature 2055) void StyleSetSize(int style, int sizePoints); /// Set the font of a style. (Scintilla feature 2056) unsafe void StyleSetFont(int style, string fontName); /// Set a style to have its end of line filled or not. (Scintilla feature 2057) void StyleSetEOLFilled(int style, bool filled); /// Reset the default style to its state at startup (Scintilla feature 2058) void StyleResetDefault(); /// Set a style to be underlined or not. (Scintilla feature 2059) void StyleSetUnderline(int style, bool underline); /// Get the foreground colour of a style. (Scintilla feature 2481) Colour StyleGetFore(int style); /// Get the background colour of a style. (Scintilla feature 2482) Colour StyleGetBack(int style); /// Get is a style bold or not. (Scintilla feature 2483) bool StyleGetBold(int style); /// Get is a style italic or not. (Scintilla feature 2484) bool StyleGetItalic(int style); /// Get the size of characters of a style. (Scintilla feature 2485) int StyleGetSize(int style); /// /// Get the font of a style. /// Returns the length of the fontName /// Result is NUL-terminated. /// (Scintilla feature 2486) /// unsafe string StyleGetFont(int style); /// Get is a style to have its end of line filled or not. (Scintilla feature 2487) bool StyleGetEOLFilled(int style); /// Get is a style underlined or not. (Scintilla feature 2488) bool StyleGetUnderline(int style); /// Get is a style mixed case, or to force upper or lower case. (Scintilla feature 2489) int StyleGetCase(int style); /// Get the character get of the font in a style. (Scintilla feature 2490) int StyleGetCharacterSet(int style); /// Get is a style visible or not. (Scintilla feature 2491) bool StyleGetVisible(int style); /// /// Get is a style changeable or not (read only). /// Experimental feature, currently buggy. /// (Scintilla feature 2492) /// bool StyleGetChangeable(int style); /// Get is a style a hotspot or not. (Scintilla feature 2493) bool StyleGetHotSpot(int style); /// Set a style to be mixed case, or to force upper or lower case. (Scintilla feature 2060) void StyleSetCase(int style, int caseForce); /// Set the size of characters of a style. Size is in points multiplied by 100. (Scintilla feature 2061) void StyleSetSizeFractional(int style, int caseForce); /// Get the size of characters of a style in points multiplied by 100 (Scintilla feature 2062) int StyleGetSizeFractional(int style); /// Set the weight of characters of a style. (Scintilla feature 2063) void StyleSetWeight(int style, int weight); /// Get the weight of characters of a style. (Scintilla feature 2064) int StyleGetWeight(int style); /// Set the character set of the font in a style. (Scintilla feature 2066) void StyleSetCharacterSet(int style, int characterSet); /// Set a style to be a hotspot or not. (Scintilla feature 2409) void StyleSetHotSpot(int style, bool hotspot); /// Set the foreground colour of the main and additional selections and whether to use this setting. (Scintilla feature 2067) void SetSelFore(bool useSetting, Colour fore); /// Set the background colour of the main and additional selections and whether to use this setting. (Scintilla feature 2068) void SetSelBack(bool useSetting, Colour back); /// Get the alpha of the selection. (Scintilla feature 2477) int GetSelAlpha(); /// Set the alpha of the selection. (Scintilla feature 2478) void SetSelAlpha(int alpha); /// Is the selection end of line filled? (Scintilla feature 2479) bool GetSelEOLFilled(); /// Set the selection to have its end of line filled or not. (Scintilla feature 2480) void SetSelEOLFilled(bool filled); /// Set the foreground colour of the caret. (Scintilla feature 2069) void SetCaretFore(Colour fore); /// When key+modifier combination km is pressed perform msg. (Scintilla feature 2070) void AssignCmdKey(KeyModifier km, int msg); /// When key+modifier combination km is pressed do nothing. (Scintilla feature 2071) void ClearCmdKey(KeyModifier km); /// Drop all key mappings. (Scintilla feature 2072) void ClearAllCmdKeys(); /// Set the styles for a segment of the document. (Scintilla feature 2073) unsafe void SetStylingEx(int length, string styles); /// Set a style to be visible or not. (Scintilla feature 2074) void StyleSetVisible(int style, bool visible); /// Get the time in milliseconds that the caret is on and off. (Scintilla feature 2075) int GetCaretPeriod(); /// Get the time in milliseconds that the caret is on and off. 0 = steady on. (Scintilla feature 2076) void SetCaretPeriod(int periodMilliseconds); /// /// Set the set of characters making up words for when moving or selecting by word. /// First sets defaults like SetCharsDefault. /// (Scintilla feature 2077) /// unsafe void SetWordChars(string characters); /// /// Get the set of characters making up words for when moving or selecting by word. /// Returns the number of characters /// (Scintilla feature 2646) /// unsafe string GetWordChars(); /// /// Start a sequence of actions that is undone and redone as a unit. /// May be nested. /// (Scintilla feature 2078) /// void BeginUndoAction(); /// End a sequence of actions that is undone and redone as a unit. (Scintilla feature 2079) void EndUndoAction(); /// Set an indicator to plain, squiggle or TT. (Scintilla feature 2080) void IndicSetStyle(int indic, int style); /// Retrieve the style of an indicator. (Scintilla feature 2081) int IndicGetStyle(int indic); /// Set the foreground colour of an indicator. (Scintilla feature 2082) void IndicSetFore(int indic, Colour fore); /// Retrieve the foreground colour of an indicator. (Scintilla feature 2083) Colour IndicGetFore(int indic); /// Set an indicator to draw under text or over(default). (Scintilla feature 2510) void IndicSetUnder(int indic, bool under); /// Retrieve whether indicator drawn under or over text. (Scintilla feature 2511) bool IndicGetUnder(int indic); /// Set a hover indicator to plain, squiggle or TT. (Scintilla feature 2680) void IndicSetHoverStyle(int indic, int style); /// Retrieve the hover style of an indicator. (Scintilla feature 2681) int IndicGetHoverStyle(int indic); /// Set the foreground hover colour of an indicator. (Scintilla feature 2682) void IndicSetHoverFore(int indic, Colour fore); /// Retrieve the foreground hover colour of an indicator. (Scintilla feature 2683) Colour IndicGetHoverFore(int indic); /// Set the attributes of an indicator. (Scintilla feature 2684) void IndicSetFlags(int indic, int flags); /// Retrieve the attributes of an indicator. (Scintilla feature 2685) int IndicGetFlags(int indic); /// Set the foreground colour of all whitespace and whether to use this setting. (Scintilla feature 2084) void SetWhitespaceFore(bool useSetting, Colour fore); /// Set the background colour of all whitespace and whether to use this setting. (Scintilla feature 2085) void SetWhitespaceBack(bool useSetting, Colour back); /// Set the size of the dots used to mark space characters. (Scintilla feature 2086) void SetWhitespaceSize(int size); /// Get the size of the dots used to mark space characters. (Scintilla feature 2087) int GetWhitespaceSize(); /// /// Divide each styling byte into lexical class bits (default: 5) and indicator /// bits (default: 3). If a lexer requires more than 32 lexical states, then this /// is used to expand the possible states. /// (Scintilla feature 2090) /// void SetStyleBits(int bits); /// Retrieve number of bits in style bytes used to hold the lexical state. (Scintilla feature 2091) int GetStyleBits(); /// Used to hold extra styling information for each line. (Scintilla feature 2092) void SetLineState(int line, int state); /// Retrieve the extra styling information for a line. (Scintilla feature 2093) int GetLineState(int line); /// Retrieve the last line number that has line state. (Scintilla feature 2094) int GetMaxLineState(); /// Is the background of the line containing the caret in a different colour? (Scintilla feature 2095) bool GetCaretLineVisible(); /// Display the background of the line containing the caret in a different colour. (Scintilla feature 2096) void SetCaretLineVisible(bool show); /// Get the colour of the background of the line containing the caret. (Scintilla feature 2097) Colour GetCaretLineBack(); /// Set the colour of the background of the line containing the caret. (Scintilla feature 2098) void SetCaretLineBack(Colour back); /// /// Set a style to be changeable or not (read only). /// Experimental feature, currently buggy. /// (Scintilla feature 2099) /// void StyleSetChangeable(int style, bool changeable); /// /// Display a auto-completion list. /// The lenEntered parameter indicates how many characters before /// the caret should be used to provide context. /// (Scintilla feature 2100) /// unsafe void AutoCShow(int lenEntered, string itemList); /// Remove the auto-completion list from the screen. (Scintilla feature 2101) void AutoCCancel(); /// Is there an auto-completion list visible? (Scintilla feature 2102) bool AutoCActive(); /// Retrieve the position of the caret when the auto-completion list was displayed. (Scintilla feature 2103) Position AutoCPosStart(); /// User has selected an item so remove the list and insert the selection. (Scintilla feature 2104) void AutoCComplete(); /// Define a set of character that when typed cancel the auto-completion list. (Scintilla feature 2105) unsafe void AutoCStops(string characterSet); /// /// Change the separator character in the string setting up an auto-completion list. /// Default is space but can be changed if items contain space. /// (Scintilla feature 2106) /// void AutoCSetSeparator(int separatorCharacter); /// Retrieve the auto-completion list separator character. (Scintilla feature 2107) int AutoCGetSeparator(); /// Select the item in the auto-completion list that starts with a string. (Scintilla feature 2108) unsafe void AutoCSelect(string text); /// /// Should the auto-completion list be cancelled if the user backspaces to a /// position before where the box was created. /// (Scintilla feature 2110) /// void AutoCSetCancelAtStart(bool cancel); /// Retrieve whether auto-completion cancelled by backspacing before start. (Scintilla feature 2111) bool AutoCGetCancelAtStart(); /// /// Define a set of characters that when typed will cause the autocompletion to /// choose the selected item. /// (Scintilla feature 2112) /// unsafe void AutoCSetFillUps(string characterSet); /// Should a single item auto-completion list automatically choose the item. (Scintilla feature 2113) void AutoCSetChooseSingle(bool chooseSingle); /// Retrieve whether a single item auto-completion list automatically choose the item. (Scintilla feature 2114) bool AutoCGetChooseSingle(); /// Set whether case is significant when performing auto-completion searches. (Scintilla feature 2115) void AutoCSetIgnoreCase(bool ignoreCase); /// Retrieve state of ignore case flag. (Scintilla feature 2116) bool AutoCGetIgnoreCase(); /// Display a list of strings and send notification when user chooses one. (Scintilla feature 2117) unsafe void UserListShow(int listType, string itemList); /// Set whether or not autocompletion is hidden automatically when nothing matches. (Scintilla feature 2118) void AutoCSetAutoHide(bool autoHide); /// Retrieve whether or not autocompletion is hidden automatically when nothing matches. (Scintilla feature 2119) bool AutoCGetAutoHide(); /// /// Set whether or not autocompletion deletes any word characters /// after the inserted text upon completion. /// (Scintilla feature 2270) /// void AutoCSetDropRestOfWord(bool dropRestOfWord); /// /// Retrieve whether or not autocompletion deletes any word characters /// after the inserted text upon completion. /// (Scintilla feature 2271) /// bool AutoCGetDropRestOfWord(); /// Register an XPM image for use in autocompletion lists. (Scintilla feature 2405) unsafe void RegisterImage(int type, string xpmData); /// Clear all the registered XPM images. (Scintilla feature 2408) void ClearRegisteredImages(); /// Retrieve the auto-completion list type-separator character. (Scintilla feature 2285) int AutoCGetTypeSeparator(); /// /// Change the type-separator character in the string setting up an auto-completion list. /// Default is '?' but can be changed if items contain '?'. /// (Scintilla feature 2286) /// void AutoCSetTypeSeparator(int separatorCharacter); /// /// Set the maximum width, in characters, of auto-completion and user lists. /// Set to 0 to autosize to fit longest item, which is the default. /// (Scintilla feature 2208) /// void AutoCSetMaxWidth(int characterCount); /// Get the maximum width, in characters, of auto-completion and user lists. (Scintilla feature 2209) int AutoCGetMaxWidth(); /// /// Set the maximum height, in rows, of auto-completion and user lists. /// The default is 5 rows. /// (Scintilla feature 2210) /// void AutoCSetMaxHeight(int rowCount); /// Set the maximum height, in rows, of auto-completion and user lists. (Scintilla feature 2211) int AutoCGetMaxHeight(); /// Set the number of spaces used for one level of indentation. (Scintilla feature 2122) void SetIndent(int indentSize); /// Retrieve indentation size. (Scintilla feature 2123) int GetIndent(); /// /// Indentation will only use space characters if useTabs is false, otherwise /// it will use a combination of tabs and spaces. /// (Scintilla feature 2124) /// void SetUseTabs(bool useTabs); /// Retrieve whether tabs will be used in indentation. (Scintilla feature 2125) bool GetUseTabs(); /// Change the indentation of a line to a number of columns. (Scintilla feature 2126) void SetLineIndentation(int line, int indentSize); /// Retrieve the number of columns that a line is indented. (Scintilla feature 2127) int GetLineIndentation(int line); /// Retrieve the position before the first non indentation character on a line. (Scintilla feature 2128) Position GetLineIndentPosition(int line); /// Retrieve the column number of a position, taking tab width into account. (Scintilla feature 2129) int GetColumn(Position pos); /// Count characters between two positions. (Scintilla feature 2633) int CountCharacters(int startPos, int endPos); /// Show or hide the horizontal scroll bar. (Scintilla feature 2130) void SetHScrollBar(bool show); /// Is the horizontal scroll bar visible? (Scintilla feature 2131) bool GetHScrollBar(); /// Show or hide indentation guides. (Scintilla feature 2132) void SetIndentationGuides(int indentView); /// Are the indentation guides visible? (Scintilla feature 2133) int GetIndentationGuides(); /// /// Set the highlighted indentation guide column. /// 0 = no highlighted guide. /// (Scintilla feature 2134) /// void SetHighlightGuide(int column); /// Get the highlighted indentation guide column. (Scintilla feature 2135) int GetHighlightGuide(); /// Get the position after the last visible characters on a line. (Scintilla feature 2136) Position GetLineEndPosition(int line); /// Get the code page used to interpret the bytes of the document as characters. (Scintilla feature 2137) int GetCodePage(); /// Get the foreground colour of the caret. (Scintilla feature 2138) Colour GetCaretFore(); /// In read-only mode? (Scintilla feature 2140) bool GetReadOnly(); /// Sets the position of the caret. (Scintilla feature 2141) void SetCurrentPos(Position pos); /// Sets the position that starts the selection - this becomes the anchor. (Scintilla feature 2142) void SetSelectionStart(Position pos); /// Returns the position at the start of the selection. (Scintilla feature 2143) Position GetSelectionStart(); /// Sets the position that ends the selection - this becomes the currentPosition. (Scintilla feature 2144) void SetSelectionEnd(Position pos); /// Returns the position at the end of the selection. (Scintilla feature 2145) Position GetSelectionEnd(); /// Set caret to a position, while removing any existing selection. (Scintilla feature 2556) void SetEmptySelection(Position pos); /// Sets the print magnification added to the point size of each style for printing. (Scintilla feature 2146) void SetPrintMagnification(int magnification); /// Returns the print magnification. (Scintilla feature 2147) int GetPrintMagnification(); /// Modify colours when printing for clearer printed text. (Scintilla feature 2148) void SetPrintColourMode(int mode); /// Returns the print colour mode. (Scintilla feature 2149) int GetPrintColourMode(); /// Find some text in the document. (Scintilla feature 2150) Position FindText(int flags, TextToFind ft); /// Retrieve the display line at the top of the display. (Scintilla feature 2152) int GetFirstVisibleLine(); /// /// Retrieve the contents of a line. /// Returns the length of the line. /// (Scintilla feature 2153) /// unsafe string GetLine(int line); /// Returns the number of lines in the document. There is always at least one. (Scintilla feature 2154) int GetLineCount(); /// Sets the size in pixels of the left margin. (Scintilla feature 2155) void SetMarginLeft(int pixelWidth); /// Returns the size in pixels of the left margin. (Scintilla feature 2156) int GetMarginLeft(); /// Sets the size in pixels of the right margin. (Scintilla feature 2157) void SetMarginRight(int pixelWidth); /// Returns the size in pixels of the right margin. (Scintilla feature 2158) int GetMarginRight(); /// Is the document different from when it was last saved? (Scintilla feature 2159) bool GetModify(); /// Select a range of text. (Scintilla feature 2160) void SetSel(Position start, Position end); /// /// Retrieve the selected text. /// Return the length of the text. /// Result is NUL-terminated. /// (Scintilla feature 2161) /// unsafe string GetSelText(); /// /// Retrieve a range of text. /// Return the length of the text. /// (Scintilla feature 2162) /// int GetTextRange(TextRange tr); /// Draw the selection in normal style or with selection highlighted. (Scintilla feature 2163) void HideSelection(bool normal); /// Retrieve the x value of the point in the window where a position is displayed. (Scintilla feature 2164) int PointXFromPosition(Position pos); /// Retrieve the y value of the point in the window where a position is displayed. (Scintilla feature 2165) int PointYFromPosition(Position pos); /// Retrieve the line containing a position. (Scintilla feature 2166) int LineFromPosition(Position pos); /// Retrieve the position at the start of a line. (Scintilla feature 2167) Position PositionFromLine(int line); /// Scroll horizontally and vertically. (Scintilla feature 2168) void LineScroll(int columns, int lines); /// Ensure the caret is visible. (Scintilla feature 2169) void ScrollCaret(); /// /// Scroll the argument positions and the range between them into view giving /// priority to the primary position then the secondary position. /// This may be used to make a search match visible. /// (Scintilla feature 2569) /// void ScrollRange(Position secondary, Position primary); /// Replace the selected text with the argument text. (Scintilla feature 2170) unsafe void ReplaceSel(string text); /// Set to read only or read write. (Scintilla feature 2171) void SetReadOnly(bool readOnly); /// Null operation. (Scintilla feature 2172) void Null(); /// Will a paste succeed? (Scintilla feature 2173) bool CanPaste(); /// Are there any undoable actions in the undo history? (Scintilla feature 2174) bool CanUndo(); /// Delete the undo history. (Scintilla feature 2175) void EmptyUndoBuffer(); /// Undo one action in the undo history. (Scintilla feature 2176) void Undo(); /// Cut the selection to the clipboard. (Scintilla feature 2177) void Cut(); /// Copy the selection to the clipboard. (Scintilla feature 2178) void Copy(); /// Paste the contents of the clipboard into the document replacing the selection. (Scintilla feature 2179) void Paste(); /// Clear the selection. (Scintilla feature 2180) void Clear(); /// Replace the contents of the document with the argument text. (Scintilla feature 2181) unsafe void SetText(string text); /// /// Retrieve all the text in the document. /// Returns number of characters retrieved. /// Result is NUL-terminated. /// (Scintilla feature 2182) /// unsafe string GetText(int length); /// Retrieve the number of characters in the document. (Scintilla feature 2183) int GetTextLength(); /// Retrieve a pointer to a function that processes messages for this Scintilla. (Scintilla feature 2184) IntPtr GetDirectFunction(); /// /// Retrieve a pointer value to use as the first argument when calling /// the function returned by GetDirectFunction. /// (Scintilla feature 2185) /// IntPtr GetDirectPointer(); /// Set to overtype (true) or insert mode. (Scintilla feature 2186) void SetOvertype(bool overtype); /// Returns true if overtype mode is active otherwise false is returned. (Scintilla feature 2187) bool GetOvertype(); /// Set the width of the insert mode caret. (Scintilla feature 2188) void SetCaretWidth(int pixelWidth); /// Returns the width of the insert mode caret. (Scintilla feature 2189) int GetCaretWidth(); /// /// Sets the position that starts the target which is used for updating the /// document without affecting the scroll position. /// (Scintilla feature 2190) /// void SetTargetStart(Position pos); /// Get the position that starts the target. (Scintilla feature 2191) Position GetTargetStart(); /// /// Sets the position that ends the target which is used for updating the /// document without affecting the scroll position. /// (Scintilla feature 2192) /// void SetTargetEnd(Position pos); /// Get the position that ends the target. (Scintilla feature 2193) Position GetTargetEnd(); /// Sets both the start and end of the target in one call. (Scintilla feature 2686) void SetTargetRange(Position start, Position end); /// Retrieve the text in the target. (Scintilla feature 2687) unsafe string GetTargetText(); /// /// Replace the target text with the argument text. /// Text is counted so it can contain NULs. /// Returns the length of the replacement text. /// (Scintilla feature 2194) /// unsafe int ReplaceTarget(int length, string text); /// /// Replace the target text with the argument text after \d processing. /// Text is counted so it can contain NULs. /// Looks for \d where d is between 1 and 9 and replaces these with the strings /// matched in the last search operation which were surrounded by \( and \). /// Returns the length of the replacement text including any change /// caused by processing the \d patterns. /// (Scintilla feature 2195) /// unsafe int ReplaceTargetRE(int length, string text); /// /// Search for a counted string in the target and set the target to the found /// range. Text is counted so it can contain NULs. /// Returns length of range or -1 for failure in which case target is not moved. /// (Scintilla feature 2197) /// unsafe int SearchInTarget(int length, string text); /// Set the search flags used by SearchInTarget. (Scintilla feature 2198) void SetSearchFlags(int flags); /// Get the search flags used by SearchInTarget. (Scintilla feature 2199) int GetSearchFlags(); /// Show a call tip containing a definition near position pos. (Scintilla feature 2200) unsafe void CallTipShow(Position pos, string definition); /// Remove the call tip from the screen. (Scintilla feature 2201) void CallTipCancel(); /// Is there an active call tip? (Scintilla feature 2202) bool CallTipActive(); /// Retrieve the position where the caret was before displaying the call tip. (Scintilla feature 2203) Position CallTipPosStart(); /// Set the start position in order to change when backspacing removes the calltip. (Scintilla feature 2214) void CallTipSetPosStart(int posStart); /// Highlight a segment of the definition. (Scintilla feature 2204) void CallTipSetHlt(int start, int end); /// Set the background colour for the call tip. (Scintilla feature 2205) void CallTipSetBack(Colour back); /// Set the foreground colour for the call tip. (Scintilla feature 2206) void CallTipSetFore(Colour fore); /// Set the foreground colour for the highlighted part of the call tip. (Scintilla feature 2207) void CallTipSetForeHlt(Colour fore); /// Enable use of STYLE_CALLTIP and set call tip tab size in pixels. (Scintilla feature 2212) void CallTipUseStyle(int tabSize); /// Set position of calltip, above or below text. (Scintilla feature 2213) void CallTipSetPosition(bool above); /// Find the display line of a document line taking hidden lines into account. (Scintilla feature 2220) int VisibleFromDocLine(int line); /// Find the document line of a display line taking hidden lines into account. (Scintilla feature 2221) int DocLineFromVisible(int lineDisplay); /// The number of display lines needed to wrap a document line (Scintilla feature 2235) int WrapCount(int line); /// /// Set the fold level of a line. /// This encodes an integer level along with flags indicating whether the /// line is a header and whether it is effectively white space. /// (Scintilla feature 2222) /// void SetFoldLevel(int line, int level); /// Retrieve the fold level of a line. (Scintilla feature 2223) int GetFoldLevel(int line); /// Find the last child line of a header line. (Scintilla feature 2224) int GetLastChild(int line, int level); /// Find the parent line of a child line. (Scintilla feature 2225) int GetFoldParent(int line); /// Make a range of lines visible. (Scintilla feature 2226) void ShowLines(int lineStart, int lineEnd); /// Make a range of lines invisible. (Scintilla feature 2227) void HideLines(int lineStart, int lineEnd); /// Is a line visible? (Scintilla feature 2228) bool GetLineVisible(int line); /// Are all lines visible? (Scintilla feature 2236) bool GetAllLinesVisible(); /// Show the children of a header line. (Scintilla feature 2229) void SetFoldExpanded(int line, bool expanded); /// Is a header line expanded? (Scintilla feature 2230) bool GetFoldExpanded(int line); /// Switch a header line between expanded and contracted. (Scintilla feature 2231) void ToggleFold(int line); /// Expand or contract a fold header. (Scintilla feature 2237) void FoldLine(int line, int action); /// Expand or contract a fold header and its children. (Scintilla feature 2238) void FoldChildren(int line, int action); /// Expand a fold header and all children. Use the level argument instead of the line's current level. (Scintilla feature 2239) void ExpandChildren(int line, int level); /// Expand or contract all fold headers. (Scintilla feature 2662) void FoldAll(int action); /// Ensure a particular line is visible by expanding any header line hiding it. (Scintilla feature 2232) void EnsureVisible(int line); /// Set automatic folding behaviours. (Scintilla feature 2663) void SetAutomaticFold(int automaticFold); /// Get automatic folding behaviours. (Scintilla feature 2664) int GetAutomaticFold(); /// Set some style options for folding. (Scintilla feature 2233) void SetFoldFlags(int flags); /// /// Ensure a particular line is visible by expanding any header line hiding it. /// Use the currently set visibility policy to determine which range to display. /// (Scintilla feature 2234) /// void EnsureVisibleEnforcePolicy(int line); /// Sets whether a tab pressed when caret is within indentation indents. (Scintilla feature 2260) void SetTabIndents(bool tabIndents); /// Does a tab pressed when caret is within indentation indent? (Scintilla feature 2261) bool GetTabIndents(); /// Sets whether a backspace pressed when caret is within indentation unindents. (Scintilla feature 2262) void SetBackSpaceUnIndents(bool bsUnIndents); /// Does a backspace pressed when caret is within indentation unindent? (Scintilla feature 2263) bool GetBackSpaceUnIndents(); /// Sets the time the mouse must sit still to generate a mouse dwell event. (Scintilla feature 2264) void SetMouseDwellTime(int periodMilliseconds); /// Retrieve the time the mouse must sit still to generate a mouse dwell event. (Scintilla feature 2265) int GetMouseDwellTime(); /// Get position of start of word. (Scintilla feature 2266) int WordStartPosition(Position pos, bool onlyWordCharacters); /// Get position of end of word. (Scintilla feature 2267) int WordEndPosition(Position pos, bool onlyWordCharacters); /// Sets whether text is word wrapped. (Scintilla feature 2268) void SetWrapMode(int mode); /// Retrieve whether text is word wrapped. (Scintilla feature 2269) int GetWrapMode(); /// Set the display mode of visual flags for wrapped lines. (Scintilla feature 2460) void SetWrapVisualFlags(int wrapVisualFlags); /// Retrive the display mode of visual flags for wrapped lines. (Scintilla feature 2461) int GetWrapVisualFlags(); /// Set the location of visual flags for wrapped lines. (Scintilla feature 2462) void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation); /// Retrive the location of visual flags for wrapped lines. (Scintilla feature 2463) int GetWrapVisualFlagsLocation(); /// Set the start indent for wrapped lines. (Scintilla feature 2464) void SetWrapStartIndent(int indent); /// Retrive the start indent for wrapped lines. (Scintilla feature 2465) int GetWrapStartIndent(); /// Sets how wrapped sublines are placed. Default is fixed. (Scintilla feature 2472) void SetWrapIndentMode(int mode); /// Retrieve how wrapped sublines are placed. Default is fixed. (Scintilla feature 2473) int GetWrapIndentMode(); /// Sets the degree of caching of layout information. (Scintilla feature 2272) void SetLayoutCache(int mode); /// Retrieve the degree of caching of layout information. (Scintilla feature 2273) int GetLayoutCache(); /// Sets the document width assumed for scrolling. (Scintilla feature 2274) void SetScrollWidth(int pixelWidth); /// Retrieve the document width assumed for scrolling. (Scintilla feature 2275) int GetScrollWidth(); /// Sets whether the maximum width line displayed is used to set scroll width. (Scintilla feature 2516) void SetScrollWidthTracking(bool tracking); /// Retrieve whether the scroll width tracks wide lines. (Scintilla feature 2517) bool GetScrollWidthTracking(); /// /// Measure the pixel width of some text in a particular style. /// NUL terminated text argument. /// Does not handle tab or control characters. /// (Scintilla feature 2276) /// unsafe int TextWidth(int style, string text); /// /// Sets the scroll range so that maximum scroll position has /// the last line at the bottom of the view (default). /// Setting this to false allows scrolling one page below the last line. /// (Scintilla feature 2277) /// void SetEndAtLastLine(bool endAtLastLine); /// /// Retrieve whether the maximum scroll position has the last /// line at the bottom of the view. /// (Scintilla feature 2278) /// bool GetEndAtLastLine(); /// Retrieve the height of a particular line of text in pixels. (Scintilla feature 2279) int TextHeight(int line); /// Show or hide the vertical scroll bar. (Scintilla feature 2280) void SetVScrollBar(bool show); /// Is the vertical scroll bar visible? (Scintilla feature 2281) bool GetVScrollBar(); /// Append a string to the end of the document without changing the selection. (Scintilla feature 2282) unsafe void AppendText(int length, string text); /// Is drawing done in two phases with backgrounds drawn before foregrounds? (Scintilla feature 2283) bool GetTwoPhaseDraw(); /// /// In twoPhaseDraw mode, drawing is performed in two phases, first the background /// and then the foreground. This avoids chopping off characters that overlap the next run. /// (Scintilla feature 2284) /// void SetTwoPhaseDraw(bool twoPhase); /// How many phases is drawing done in? (Scintilla feature 2673) int GetPhasesDraw(); /// /// In one phase draw, text is drawn in a series of rectangular blocks with no overlap. /// In two phase draw, text is drawn in a series of lines allowing runs to overlap horizontally. /// In multiple phase draw, each element is drawn over the whole drawing area, allowing text /// to overlap from one line to the next. /// (Scintilla feature 2674) /// void SetPhasesDraw(int phases); /// Choose the quality level for text from the FontQuality enumeration. (Scintilla feature 2611) void SetFontQuality(int fontQuality); /// Retrieve the quality level for text. (Scintilla feature 2612) int GetFontQuality(); /// Scroll so that a display line is at the top of the display. (Scintilla feature 2613) void SetFirstVisibleLine(int lineDisplay); /// Change the effect of pasting when there are multiple selections. (Scintilla feature 2614) void SetMultiPaste(int multiPaste); /// Retrieve the effect of pasting when there are multiple selections.. (Scintilla feature 2615) int GetMultiPaste(); /// /// Retrieve the value of a tag from a regular expression search. /// Result is NUL-terminated. /// (Scintilla feature 2616) /// unsafe string GetTag(int tagNumber); /// Make the target range start and end be the same as the selection range start and end. (Scintilla feature 2287) void TargetFromSelection(); /// Join the lines in the target. (Scintilla feature 2288) void LinesJoin(); /// /// Split the lines in the target into lines that are less wide than pixelWidth /// where possible. /// (Scintilla feature 2289) /// void LinesSplit(int pixelWidth); /// Set the colours used as a chequerboard pattern in the fold margin (Scintilla feature 2290) void SetFoldMarginColour(bool useSetting, Colour back); /// Set the colours used as a chequerboard pattern in the fold margin (Scintilla feature 2291) void SetFoldMarginHiColour(bool useSetting, Colour fore); /// Move caret down one line. (Scintilla feature 2300) void LineDown(); /// Move caret down one line extending selection to new caret position. (Scintilla feature 2301) void LineDownExtend(); /// Move caret up one line. (Scintilla feature 2302) void LineUp(); /// Move caret up one line extending selection to new caret position. (Scintilla feature 2303) void LineUpExtend(); /// Move caret left one character. (Scintilla feature 2304) void CharLeft(); /// Move caret left one character extending selection to new caret position. (Scintilla feature 2305) void CharLeftExtend(); /// Move caret right one character. (Scintilla feature 2306) void CharRight(); /// Move caret right one character extending selection to new caret position. (Scintilla feature 2307) void CharRightExtend(); /// Move caret left one word. (Scintilla feature 2308) void WordLeft(); /// Move caret left one word extending selection to new caret position. (Scintilla feature 2309) void WordLeftExtend(); /// Move caret right one word. (Scintilla feature 2310) void WordRight(); /// Move caret right one word extending selection to new caret position. (Scintilla feature 2311) void WordRightExtend(); /// Move caret to first position on line. (Scintilla feature 2312) void Home(); /// Move caret to first position on line extending selection to new caret position. (Scintilla feature 2313) void HomeExtend(); /// Move caret to last position on line. (Scintilla feature 2314) void LineEnd(); /// Move caret to last position on line extending selection to new caret position. (Scintilla feature 2315) void LineEndExtend(); /// Move caret to first position in document. (Scintilla feature 2316) void DocumentStart(); /// Move caret to first position in document extending selection to new caret position. (Scintilla feature 2317) void DocumentStartExtend(); /// Move caret to last position in document. (Scintilla feature 2318) void DocumentEnd(); /// Move caret to last position in document extending selection to new caret position. (Scintilla feature 2319) void DocumentEndExtend(); /// Move caret one page up. (Scintilla feature 2320) void PageUp(); /// Move caret one page up extending selection to new caret position. (Scintilla feature 2321) void PageUpExtend(); /// Move caret one page down. (Scintilla feature 2322) void PageDown(); /// Move caret one page down extending selection to new caret position. (Scintilla feature 2323) void PageDownExtend(); /// Switch from insert to overtype mode or the reverse. (Scintilla feature 2324) void EditToggleOvertype(); /// Cancel any modes such as call tip or auto-completion list display. (Scintilla feature 2325) void Cancel(); /// Delete the selection or if no selection, the character before the caret. (Scintilla feature 2326) void DeleteBack(); /// /// If selection is empty or all on one line replace the selection with a tab character. /// If more than one line selected, indent the lines. /// (Scintilla feature 2327) /// void Tab(); /// Dedent the selected lines. (Scintilla feature 2328) void BackTab(); /// Insert a new line, may use a CRLF, CR or LF depending on EOL mode. (Scintilla feature 2329) void NewLine(); /// Insert a Form Feed character. (Scintilla feature 2330) void FormFeed(); /// /// Move caret to before first visible character on line. /// If already there move to first character on line. /// (Scintilla feature 2331) /// void VCHome(); /// Like VCHome but extending selection to new caret position. (Scintilla feature 2332) void VCHomeExtend(); /// Magnify the displayed text by increasing the sizes by 1 point. (Scintilla feature 2333) void ZoomIn(); /// Make the displayed text smaller by decreasing the sizes by 1 point. (Scintilla feature 2334) void ZoomOut(); /// Delete the word to the left of the caret. (Scintilla feature 2335) void DelWordLeft(); /// Delete the word to the right of the caret. (Scintilla feature 2336) void DelWordRight(); /// Delete the word to the right of the caret, but not the trailing non-word characters. (Scintilla feature 2518) void DelWordRightEnd(); /// Cut the line containing the caret. (Scintilla feature 2337) void LineCut(); /// Delete the line containing the caret. (Scintilla feature 2338) void LineDelete(); /// Switch the current line with the previous. (Scintilla feature 2339) void LineTranspose(); /// Duplicate the current line. (Scintilla feature 2404) void LineDuplicate(); /// Transform the selection to lower case. (Scintilla feature 2340) void LowerCase(); /// Transform the selection to upper case. (Scintilla feature 2341) void UpperCase(); /// Scroll the document down, keeping the caret visible. (Scintilla feature 2342) void LineScrollDown(); /// Scroll the document up, keeping the caret visible. (Scintilla feature 2343) void LineScrollUp(); /// /// Delete the selection or if no selection, the character before the caret. /// Will not delete the character before at the start of a line. /// (Scintilla feature 2344) /// void DeleteBackNotLine(); /// Move caret to first position on display line. (Scintilla feature 2345) void HomeDisplay(); /// /// Move caret to first position on display line extending selection to /// new caret position. /// (Scintilla feature 2346) /// void HomeDisplayExtend(); /// Move caret to last position on display line. (Scintilla feature 2347) void LineEndDisplay(); /// /// Move caret to last position on display line extending selection to new /// caret position. /// (Scintilla feature 2348) /// void LineEndDisplayExtend(); /// /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? /// except they behave differently when word-wrap is enabled: /// They go first to the start / end of the display line, like (Home|LineEnd)Display /// The difference is that, the cursor is already at the point, it goes on to the start /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. /// (Scintilla feature 2349) /// void HomeWrap(); /// /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? /// except they behave differently when word-wrap is enabled: /// They go first to the start / end of the display line, like (Home|LineEnd)Display /// The difference is that, the cursor is already at the point, it goes on to the start /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. /// (Scintilla feature 2450) /// void HomeWrapExtend(); /// /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? /// except they behave differently when word-wrap is enabled: /// They go first to the start / end of the display line, like (Home|LineEnd)Display /// The difference is that, the cursor is already at the point, it goes on to the start /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. /// (Scintilla feature 2451) /// void LineEndWrap(); /// /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? /// except they behave differently when word-wrap is enabled: /// They go first to the start / end of the display line, like (Home|LineEnd)Display /// The difference is that, the cursor is already at the point, it goes on to the start /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. /// (Scintilla feature 2452) /// void LineEndWrapExtend(); /// /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? /// except they behave differently when word-wrap is enabled: /// They go first to the start / end of the display line, like (Home|LineEnd)Display /// The difference is that, the cursor is already at the point, it goes on to the start /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. /// (Scintilla feature 2453) /// void VCHomeWrap(); /// /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? /// except they behave differently when word-wrap is enabled: /// They go first to the start / end of the display line, like (Home|LineEnd)Display /// The difference is that, the cursor is already at the point, it goes on to the start /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. /// (Scintilla feature 2454) /// void VCHomeWrapExtend(); /// Copy the line containing the caret. (Scintilla feature 2455) void LineCopy(); /// Move the caret inside current view if it's not there already. (Scintilla feature 2401) void MoveCaretInsideView(); /// How many characters are on a line, including end of line characters? (Scintilla feature 2350) int LineLength(int line); /// Highlight the characters at two positions. (Scintilla feature 2351) void BraceHighlight(Position pos1, Position pos2); /// Use specified indicator to highlight matching braces instead of changing their style. (Scintilla feature 2498) void BraceHighlightIndicator(bool useBraceHighlightIndicator, int indicator); /// Highlight the character at a position indicating there is no matching brace. (Scintilla feature 2352) void BraceBadLight(Position pos); /// Use specified indicator to highlight non matching brace instead of changing its style. (Scintilla feature 2499) void BraceBadLightIndicator(bool useBraceBadLightIndicator, int indicator); /// Find the position of a matching brace or INVALID_POSITION if no match. (Scintilla feature 2353) Position BraceMatch(Position pos); /// Are the end of line characters visible? (Scintilla feature 2355) bool GetViewEOL(); /// Make the end of line characters visible or invisible. (Scintilla feature 2356) void SetViewEOL(bool visible); /// Retrieve a pointer to the document object. (Scintilla feature 2357) IntPtr GetDocPointer(); /// Change the document object used. (Scintilla feature 2358) void SetDocPointer(IntPtr pointer); /// Set which document modification events are sent to the container. (Scintilla feature 2359) void SetModEventMask(int mask); /// Retrieve the column number which text should be kept within. (Scintilla feature 2360) int GetEdgeColumn(); /// /// Set the column number of the edge. /// If text goes past the edge then it is highlighted. /// (Scintilla feature 2361) /// void SetEdgeColumn(int column); /// Retrieve the edge highlight mode. (Scintilla feature 2362) int GetEdgeMode(); /// /// The edge may be displayed by a line (EDGE_LINE) or by highlighting text that /// goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). /// (Scintilla feature 2363) /// void SetEdgeMode(int mode); /// Retrieve the colour used in edge indication. (Scintilla feature 2364) Colour GetEdgeColour(); /// Change the colour used in edge indication. (Scintilla feature 2365) void SetEdgeColour(Colour edgeColour); /// Sets the current caret position to be the search anchor. (Scintilla feature 2366) void SearchAnchor(); /// /// Find some text starting at the search anchor. /// Does not ensure the selection is visible. /// (Scintilla feature 2367) /// unsafe int SearchNext(int flags, string text); /// /// Find some text starting at the search anchor and moving backwards. /// Does not ensure the selection is visible. /// (Scintilla feature 2368) /// unsafe int SearchPrev(int flags, string text); /// Retrieves the number of lines completely visible. (Scintilla feature 2370) int LinesOnScreen(); /// /// Set whether a pop up menu is displayed automatically when the user presses /// the wrong mouse button. /// (Scintilla feature 2371) /// void UsePopUp(bool allowPopUp); /// Is the selection rectangular? The alternative is the more common stream selection. (Scintilla feature 2372) bool SelectionIsRectangle(); /// /// Set the zoom level. This number of points is added to the size of all fonts. /// It may be positive to magnify or negative to reduce. /// (Scintilla feature 2373) /// void SetZoom(int zoom); /// Retrieve the zoom level. (Scintilla feature 2374) int GetZoom(); /// /// Create a new document object. /// Starts with reference count of 1 and not selected into editor. /// (Scintilla feature 2375) /// int CreateDocument(); /// Extend life of document. (Scintilla feature 2376) void AddRefDocument(int doc); /// Release a reference to the document, deleting document if it fades to black. (Scintilla feature 2377) void ReleaseDocument(int doc); /// Get which document modification events are sent to the container. (Scintilla feature 2378) int GetModEventMask(); /// Change internal focus flag. (Scintilla feature 2380) void SetFocus(bool focus); /// Get internal focus flag. (Scintilla feature 2381) bool GetFocus(); /// Change error status - 0 = OK. (Scintilla feature 2382) void SetStatus(int statusCode); /// Get error status. (Scintilla feature 2383) int GetStatus(); /// Set whether the mouse is captured when its button is pressed. (Scintilla feature 2384) void SetMouseDownCaptures(bool captures); /// Get whether mouse gets captured. (Scintilla feature 2385) bool GetMouseDownCaptures(); /// Sets the cursor to one of the SC_CURSOR* values. (Scintilla feature 2386) void SetCursor(int cursorType); /// Get cursor type. (Scintilla feature 2387) int GetCursor(); /// /// Change the way control characters are displayed: /// If symbol is < 32, keep the drawn way, else, use the given character. /// (Scintilla feature 2388) /// void SetControlCharSymbol(int symbol); /// Get the way control characters are displayed. (Scintilla feature 2389) int GetControlCharSymbol(); /// Move to the previous change in capitalisation. (Scintilla feature 2390) void WordPartLeft(); /// /// Move to the previous change in capitalisation extending selection /// to new caret position. /// (Scintilla feature 2391) /// void WordPartLeftExtend(); /// Move to the change next in capitalisation. (Scintilla feature 2392) void WordPartRight(); /// /// Move to the next change in capitalisation extending selection /// to new caret position. /// (Scintilla feature 2393) /// void WordPartRightExtend(); /// /// Set the way the display area is determined when a particular line /// is to be moved to by Find, FindNext, GotoLine, etc. /// (Scintilla feature 2394) /// void SetVisiblePolicy(int visiblePolicy, int visibleSlop); /// Delete back from the current position to the start of the line. (Scintilla feature 2395) void DelLineLeft(); /// Delete forwards from the current position to the end of the line. (Scintilla feature 2396) void DelLineRight(); /// Get and Set the xOffset (ie, horizontal scroll position). (Scintilla feature 2397) void SetXOffset(int newOffset); /// Get and Set the xOffset (ie, horizontal scroll position). (Scintilla feature 2398) int GetXOffset(); /// Set the last x chosen value to be the caret x position. (Scintilla feature 2399) void ChooseCaretX(); /// Set the focus to this Scintilla widget. (Scintilla feature 2400) void GrabFocus(); /// /// Set the way the caret is kept visible when going sideways. /// The exclusion zone is given in pixels. /// (Scintilla feature 2402) /// void SetXCaretPolicy(int caretPolicy, int caretSlop); /// /// Set the way the line the caret is on is kept visible. /// The exclusion zone is given in lines. /// (Scintilla feature 2403) /// void SetYCaretPolicy(int caretPolicy, int caretSlop); /// Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). (Scintilla feature 2406) void SetPrintWrapMode(int mode); /// Is printing line wrapped? (Scintilla feature 2407) int GetPrintWrapMode(); /// Set a fore colour for active hotspots. (Scintilla feature 2410) void SetHotspotActiveFore(bool useSetting, Colour fore); /// Get the fore colour for active hotspots. (Scintilla feature 2494) Colour GetHotspotActiveFore(); /// Set a back colour for active hotspots. (Scintilla feature 2411) void SetHotspotActiveBack(bool useSetting, Colour back); /// Get the back colour for active hotspots. (Scintilla feature 2495) Colour GetHotspotActiveBack(); /// Enable / Disable underlining active hotspots. (Scintilla feature 2412) void SetHotspotActiveUnderline(bool underline); /// Get whether underlining for active hotspots. (Scintilla feature 2496) bool GetHotspotActiveUnderline(); /// Limit hotspots to single line so hotspots on two lines don't merge. (Scintilla feature 2421) void SetHotspotSingleLine(bool singleLine); /// Get the HotspotSingleLine property (Scintilla feature 2497) bool GetHotspotSingleLine(); /// Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2413) void ParaDown(); /// Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2414) void ParaDownExtend(); /// Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2415) void ParaUp(); /// Move caret between paragraphs (delimited by empty lines). (Scintilla feature 2416) void ParaUpExtend(); /// /// Given a valid document position, return the previous position taking code /// page into account. Returns 0 if passed 0. /// (Scintilla feature 2417) /// Position PositionBefore(Position pos); /// /// Given a valid document position, return the next position taking code /// page into account. Maximum value returned is the last position in the document. /// (Scintilla feature 2418) /// Position PositionAfter(Position pos); /// /// Given a valid document position, return a position that differs in a number /// of characters. Returned value is always between 0 and last position in document. /// (Scintilla feature 2670) /// Position PositionRelative(Position pos, int relative); /// Copy a range of text to the clipboard. Positions are clipped into the document. (Scintilla feature 2419) void CopyRange(Position start, Position end); /// Copy argument text to the clipboard. (Scintilla feature 2420) unsafe void CopyText(int length, string text); /// /// Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or /// by lines (SC_SEL_LINES). /// (Scintilla feature 2422) /// void SetSelectionMode(int mode); /// Get the mode of the current selection. (Scintilla feature 2423) int GetSelectionMode(); /// Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). (Scintilla feature 2424) Position GetLineSelStartPosition(int line); /// Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). (Scintilla feature 2425) Position GetLineSelEndPosition(int line); /// Move caret down one line, extending rectangular selection to new caret position. (Scintilla feature 2426) void LineDownRectExtend(); /// Move caret up one line, extending rectangular selection to new caret position. (Scintilla feature 2427) void LineUpRectExtend(); /// Move caret left one character, extending rectangular selection to new caret position. (Scintilla feature 2428) void CharLeftRectExtend(); /// Move caret right one character, extending rectangular selection to new caret position. (Scintilla feature 2429) void CharRightRectExtend(); /// Move caret to first position on line, extending rectangular selection to new caret position. (Scintilla feature 2430) void HomeRectExtend(); /// /// Move caret to before first visible character on line. /// If already there move to first character on line. /// In either case, extend rectangular selection to new caret position. /// (Scintilla feature 2431) /// void VCHomeRectExtend(); /// Move caret to last position on line, extending rectangular selection to new caret position. (Scintilla feature 2432) void LineEndRectExtend(); /// Move caret one page up, extending rectangular selection to new caret position. (Scintilla feature 2433) void PageUpRectExtend(); /// Move caret one page down, extending rectangular selection to new caret position. (Scintilla feature 2434) void PageDownRectExtend(); /// Move caret to top of page, or one page up if already at top of page. (Scintilla feature 2435) void StutteredPageUp(); /// 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) void StutteredPageUpExtend(); /// Move caret to bottom of page, or one page down if already at bottom of page. (Scintilla feature 2437) void StutteredPageDown(); /// 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) void StutteredPageDownExtend(); /// Move caret left one word, position cursor at end of word. (Scintilla feature 2439) void WordLeftEnd(); /// Move caret left one word, position cursor at end of word, extending selection to new caret position. (Scintilla feature 2440) void WordLeftEndExtend(); /// Move caret right one word, position cursor at end of word. (Scintilla feature 2441) void WordRightEnd(); /// Move caret right one word, position cursor at end of word, extending selection to new caret position. (Scintilla feature 2442) void WordRightEndExtend(); /// /// Set the set of characters making up whitespace for when moving or selecting by word. /// Should be called after SetWordChars. /// (Scintilla feature 2443) /// unsafe void SetWhitespaceChars(string characters); /// Get the set of characters making up whitespace for when moving or selecting by word. (Scintilla feature 2647) unsafe string GetWhitespaceChars(); /// /// Set the set of characters making up punctuation characters /// Should be called after SetWordChars. /// (Scintilla feature 2648) /// unsafe void SetPunctuationChars(string characters); /// Get the set of characters making up punctuation characters (Scintilla feature 2649) unsafe string GetPunctuationChars(); /// Reset the set of characters for whitespace and word characters to the defaults. (Scintilla feature 2444) void SetCharsDefault(); /// Get currently selected item position in the auto-completion list (Scintilla feature 2445) int AutoCGetCurrent(); /// /// Get currently selected item text in the auto-completion list /// Returns the length of the item text /// Result is NUL-terminated. /// (Scintilla feature 2610) /// unsafe string AutoCGetCurrentText(); /// Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference. (Scintilla feature 2634) void AutoCSetCaseInsensitiveBehaviour(int behaviour); /// Get auto-completion case insensitive behaviour. (Scintilla feature 2635) int AutoCGetCaseInsensitiveBehaviour(); /// Change the effect of autocompleting when there are multiple selections. (Scintilla feature 2636) void AutoCSetMulti(int multi); /// Retrieve the effect of autocompleting when there are multiple selections.. (Scintilla feature 2637) int AutoCGetMulti(); /// Set the way autocompletion lists are ordered. (Scintilla feature 2660) void AutoCSetOrder(int order); /// Get the way autocompletion lists are ordered. (Scintilla feature 2661) int AutoCGetOrder(); /// Enlarge the document to a particular size of text bytes. (Scintilla feature 2446) void Allocate(int bytes); /// /// Returns the target converted to UTF8. /// Return the length in bytes. /// (Scintilla feature 2447) /// unsafe string TargetAsUTF8(); /// /// Set the length of the utf8 argument for calling EncodedFromUTF8. /// Set to -1 and the string will be measured to the first nul. /// (Scintilla feature 2448) /// void SetLengthForEncode(int bytes); /// /// Translates a UTF8 string into the document encoding. /// Return the length of the result in bytes. /// On error return 0. /// (Scintilla feature 2449) /// unsafe string EncodedFromUTF8(string utf8); /// /// Translates a UTF8 string into the document encoding. /// Return the length of the result in bytes. /// On error return 0. /// (Scintilla feature 2449) /// int EncodedFromUTF8Len(string utf8); /// /// Find the position of a column on a line taking into account tabs and /// multi-byte characters. If beyond end of line, return line end position. /// (Scintilla feature 2456) /// int FindColumn(int line, int column); /// Can the caret preferred x position only be changed by explicit movement commands? (Scintilla feature 2457) int GetCaretSticky(); /// Stop the caret preferred x position changing when the user types. (Scintilla feature 2458) void SetCaretSticky(int useCaretStickyBehaviour); /// Switch between sticky and non-sticky: meant to be bound to a key. (Scintilla feature 2459) void ToggleCaretSticky(); /// Enable/Disable convert-on-paste for line endings (Scintilla feature 2467) void SetPasteConvertEndings(bool convert); /// Get convert-on-paste setting (Scintilla feature 2468) bool GetPasteConvertEndings(); /// Duplicate the selection. If selection empty duplicate the line containing the caret. (Scintilla feature 2469) void SelectionDuplicate(); /// Set background alpha of the caret line. (Scintilla feature 2470) void SetCaretLineBackAlpha(int alpha); /// Get the background alpha of the caret line. (Scintilla feature 2471) int GetCaretLineBackAlpha(); /// Set the style of the caret to be drawn. (Scintilla feature 2512) void SetCaretStyle(int caretStyle); /// Returns the current style of the caret. (Scintilla feature 2513) int GetCaretStyle(); /// Set the indicator used for IndicatorFillRange and IndicatorClearRange (Scintilla feature 2500) void SetIndicatorCurrent(int indicator); /// Get the current indicator (Scintilla feature 2501) int GetIndicatorCurrent(); /// Set the value used for IndicatorFillRange (Scintilla feature 2502) void SetIndicatorValue(int value); /// Get the current indicator value (Scintilla feature 2503) int GetIndicatorValue(); /// Turn a indicator on over a range. (Scintilla feature 2504) void IndicatorFillRange(int position, int fillLength); /// Turn a indicator off over a range. (Scintilla feature 2505) void IndicatorClearRange(int position, int clearLength); /// Are any indicators present at position? (Scintilla feature 2506) int IndicatorAllOnFor(int position); /// What value does a particular indicator have at at a position? (Scintilla feature 2507) int IndicatorValueAt(int indicator, int position); /// Where does a particular indicator start? (Scintilla feature 2508) int IndicatorStart(int indicator, int position); /// Where does a particular indicator end? (Scintilla feature 2509) int IndicatorEnd(int indicator, int position); /// Set number of entries in position cache (Scintilla feature 2514) void SetPositionCache(int size); /// How many entries are allocated to the position cache? (Scintilla feature 2515) int GetPositionCache(); /// Copy the selection, if selection empty copy the line with the caret (Scintilla feature 2519) void CopyAllowLine(); /// /// Compact the document buffer and return a read-only pointer to the /// characters in the document. /// (Scintilla feature 2520) /// IntPtr GetCharacterPointer(); /// /// Return a read-only pointer to a range of characters in the document. /// May move the gap so that the range is contiguous, but will only move up /// to rangeLength bytes. /// (Scintilla feature 2643) /// IntPtr GetRangePointer(int position, int rangeLength); /// /// Return a position which, to avoid performance costs, should not be within /// the range of a call to GetRangePointer. /// (Scintilla feature 2644) /// Position GetGapPosition(); /// Set the alpha fill colour of the given indicator. (Scintilla feature 2523) void IndicSetAlpha(int indicator, int alpha); /// Get the alpha fill colour of the given indicator. (Scintilla feature 2524) int IndicGetAlpha(int indicator); /// Set the alpha outline colour of the given indicator. (Scintilla feature 2558) void IndicSetOutlineAlpha(int indicator, int alpha); /// Get the alpha outline colour of the given indicator. (Scintilla feature 2559) int IndicGetOutlineAlpha(int indicator); /// Set extra ascent for each line (Scintilla feature 2525) void SetExtraAscent(int extraAscent); /// Get extra ascent for each line (Scintilla feature 2526) int GetExtraAscent(); /// Set extra descent for each line (Scintilla feature 2527) void SetExtraDescent(int extraDescent); /// Get extra descent for each line (Scintilla feature 2528) int GetExtraDescent(); /// Which symbol was defined for markerNumber with MarkerDefine (Scintilla feature 2529) int MarkerSymbolDefined(int markerNumber); /// Set the text in the text margin for a line (Scintilla feature 2530) unsafe void MarginSetText(int line, string text); /// Get the text in the text margin for a line (Scintilla feature 2531) unsafe string MarginGetText(int line); /// Set the style number for the text margin for a line (Scintilla feature 2532) void MarginSetStyle(int line, int style); /// Get the style number for the text margin for a line (Scintilla feature 2533) int MarginGetStyle(int line); /// Set the style in the text margin for a line (Scintilla feature 2534) unsafe void MarginSetStyles(int line, string styles); /// Get the styles in the text margin for a line (Scintilla feature 2535) unsafe string MarginGetStyles(int line); /// Clear the margin text on all lines (Scintilla feature 2536) void MarginTextClearAll(); /// Get the start of the range of style numbers used for margin text (Scintilla feature 2537) void MarginSetStyleOffset(int style); /// Get the start of the range of style numbers used for margin text (Scintilla feature 2538) int MarginGetStyleOffset(); /// Set the margin options. (Scintilla feature 2539) void SetMarginOptions(int marginOptions); /// Get the margin options. (Scintilla feature 2557) int GetMarginOptions(); /// Set the annotation text for a line (Scintilla feature 2540) unsafe void AnnotationSetText(int line, string text); /// Get the annotation text for a line (Scintilla feature 2541) unsafe string AnnotationGetText(int line); /// Set the style number for the annotations for a line (Scintilla feature 2542) void AnnotationSetStyle(int line, int style); /// Get the style number for the annotations for a line (Scintilla feature 2543) int AnnotationGetStyle(int line); /// Set the annotation styles for a line (Scintilla feature 2544) unsafe void AnnotationSetStyles(int line, string styles); /// Get the annotation styles for a line (Scintilla feature 2545) unsafe string AnnotationGetStyles(int line); /// Get the number of annotation lines for a line (Scintilla feature 2546) int AnnotationGetLines(int line); /// Clear the annotations from all lines (Scintilla feature 2547) void AnnotationClearAll(); /// Set the visibility for the annotations for a view (Scintilla feature 2548) void AnnotationSetVisible(int visible); /// Get the visibility for the annotations for a view (Scintilla feature 2549) int AnnotationGetVisible(); /// Get the start of the range of style numbers used for annotations (Scintilla feature 2550) void AnnotationSetStyleOffset(int style); /// Get the start of the range of style numbers used for annotations (Scintilla feature 2551) int AnnotationGetStyleOffset(); /// Release all extended (>255) style numbers (Scintilla feature 2552) void ReleaseAllExtendedStyles(); /// Allocate some extended (>255) style numbers and return the start of the range (Scintilla feature 2553) int AllocateExtendedStyles(int numberStyles); /// Add a container action to the undo stack (Scintilla feature 2560) void AddUndoAction(int token, int flags); /// Find the position of a character from a point within the window. (Scintilla feature 2561) Position CharPositionFromPoint(int x, int y); /// /// Find the position of a character from a point within the window. /// Return INVALID_POSITION if not close to text. /// (Scintilla feature 2562) /// Position CharPositionFromPointClose(int x, int y); /// Set whether switching to rectangular mode while selecting with the mouse is allowed. (Scintilla feature 2668) void SetMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch); /// Whether switching to rectangular mode while selecting with the mouse is allowed. (Scintilla feature 2669) bool GetMouseSelectionRectangularSwitch(); /// Set whether multiple selections can be made (Scintilla feature 2563) void SetMultipleSelection(bool multipleSelection); /// Whether multiple selections can be made (Scintilla feature 2564) bool GetMultipleSelection(); /// Set whether typing can be performed into multiple selections (Scintilla feature 2565) void SetAdditionalSelectionTyping(bool additionalSelectionTyping); /// Whether typing can be performed into multiple selections (Scintilla feature 2566) bool GetAdditionalSelectionTyping(); /// Set whether additional carets will blink (Scintilla feature 2567) void SetAdditionalCaretsBlink(bool additionalCaretsBlink); /// Whether additional carets will blink (Scintilla feature 2568) bool GetAdditionalCaretsBlink(); /// Set whether additional carets are visible (Scintilla feature 2608) void SetAdditionalCaretsVisible(bool additionalCaretsBlink); /// Whether additional carets are visible (Scintilla feature 2609) bool GetAdditionalCaretsVisible(); /// How many selections are there? (Scintilla feature 2570) int GetSelections(); /// Is every selected range empty? (Scintilla feature 2650) bool GetSelectionEmpty(); /// Clear selections to a single empty stream selection (Scintilla feature 2571) void ClearSelections(); /// Set a simple selection (Scintilla feature 2572) int SetSelection(int caret, int anchor); /// Add a selection (Scintilla feature 2573) int AddSelection(int caret, int anchor); /// Drop one selection (Scintilla feature 2671) void DropSelectionN(int selection); /// Set the main selection (Scintilla feature 2574) void SetMainSelection(int selection); /// Which selection is the main selection (Scintilla feature 2575) int GetMainSelection(); /// Which selection is the main selection (Scintilla feature 2576) void SetSelectionNCaret(int selection, Position pos); /// Which selection is the main selection (Scintilla feature 2577) Position GetSelectionNCaret(int selection); /// Which selection is the main selection (Scintilla feature 2578) void SetSelectionNAnchor(int selection, Position posAnchor); /// Which selection is the main selection (Scintilla feature 2579) Position GetSelectionNAnchor(int selection); /// Which selection is the main selection (Scintilla feature 2580) void SetSelectionNCaretVirtualSpace(int selection, int space); /// Which selection is the main selection (Scintilla feature 2581) int GetSelectionNCaretVirtualSpace(int selection); /// Which selection is the main selection (Scintilla feature 2582) void SetSelectionNAnchorVirtualSpace(int selection, int space); /// Which selection is the main selection (Scintilla feature 2583) int GetSelectionNAnchorVirtualSpace(int selection); /// Sets the position that starts the selection - this becomes the anchor. (Scintilla feature 2584) void SetSelectionNStart(int selection, Position pos); /// Returns the position at the start of the selection. (Scintilla feature 2585) Position GetSelectionNStart(int selection); /// Sets the position that ends the selection - this becomes the currentPosition. (Scintilla feature 2586) void SetSelectionNEnd(int selection, Position pos); /// Returns the position at the end of the selection. (Scintilla feature 2587) Position GetSelectionNEnd(int selection); /// Returns the position at the end of the selection. (Scintilla feature 2588) void SetRectangularSelectionCaret(Position pos); /// Returns the position at the end of the selection. (Scintilla feature 2589) Position GetRectangularSelectionCaret(); /// Returns the position at the end of the selection. (Scintilla feature 2590) void SetRectangularSelectionAnchor(Position posAnchor); /// Returns the position at the end of the selection. (Scintilla feature 2591) Position GetRectangularSelectionAnchor(); /// Returns the position at the end of the selection. (Scintilla feature 2592) void SetRectangularSelectionCaretVirtualSpace(int space); /// Returns the position at the end of the selection. (Scintilla feature 2593) int GetRectangularSelectionCaretVirtualSpace(); /// Returns the position at the end of the selection. (Scintilla feature 2594) void SetRectangularSelectionAnchorVirtualSpace(int space); /// Returns the position at the end of the selection. (Scintilla feature 2595) int GetRectangularSelectionAnchorVirtualSpace(); /// Returns the position at the end of the selection. (Scintilla feature 2596) void SetVirtualSpaceOptions(int virtualSpaceOptions); /// Returns the position at the end of the selection. (Scintilla feature 2597) int GetVirtualSpaceOptions(); /// /// On GTK+, allow selecting the modifier key to use for mouse-based /// rectangular selection. Often the window manager requires Alt+Mouse Drag /// for moving windows. /// Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER. /// (Scintilla feature 2598) /// void SetRectangularSelectionModifier(int modifier); /// Get the modifier key used for rectangular selection. (Scintilla feature 2599) int GetRectangularSelectionModifier(); /// /// Set the foreground colour of additional selections. /// Must have previously called SetSelFore with non-zero first argument for this to have an effect. /// (Scintilla feature 2600) /// void SetAdditionalSelFore(Colour fore); /// /// Set the background colour of additional selections. /// Must have previously called SetSelBack with non-zero first argument for this to have an effect. /// (Scintilla feature 2601) /// void SetAdditionalSelBack(Colour back); /// Set the alpha of the selection. (Scintilla feature 2602) void SetAdditionalSelAlpha(int alpha); /// Get the alpha of the selection. (Scintilla feature 2603) int GetAdditionalSelAlpha(); /// Set the foreground colour of additional carets. (Scintilla feature 2604) void SetAdditionalCaretFore(Colour fore); /// Get the foreground colour of additional carets. (Scintilla feature 2605) Colour GetAdditionalCaretFore(); /// Set the main selection to the next selection. (Scintilla feature 2606) void RotateSelection(); /// Swap that caret and anchor of the main selection. (Scintilla feature 2607) void SwapMainAnchorCaret(); /// /// Indicate that the internal state of a lexer has changed over a range and therefore /// there may be a need to redraw. /// (Scintilla feature 2617) /// int ChangeLexerState(Position start, Position end); /// /// Find the next line at or after lineStart that is a contracted fold header line. /// Return -1 when no more lines. /// (Scintilla feature 2618) /// int ContractedFoldNext(int lineStart); /// Centre current line in window. (Scintilla feature 2619) void VerticalCentreCaret(); /// Move the selected lines up one line, shifting the line above after the selection (Scintilla feature 2620) void MoveSelectedLinesUp(); /// Move the selected lines down one line, shifting the line below before the selection (Scintilla feature 2621) void MoveSelectedLinesDown(); /// Set the identifier reported as IdFrom in notification messages. (Scintilla feature 2622) void SetIdentifier(int identifier); /// Get the identifier. (Scintilla feature 2623) int GetIdentifier(); /// Set the width for future RGBA image data. (Scintilla feature 2624) void RGBAImageSetWidth(int width); /// Set the height for future RGBA image data. (Scintilla feature 2625) void RGBAImageSetHeight(int height); /// Set the scale factor in percent for future RGBA image data. (Scintilla feature 2651) void RGBAImageSetScale(int scalePercent); /// /// Define a marker from RGBA data. /// It has the width and height from RGBAImageSetWidth/Height /// (Scintilla feature 2626) /// unsafe void MarkerDefineRGBAImage(int markerNumber, string pixels); /// /// Register an RGBA image for use in autocompletion lists. /// It has the width and height from RGBAImageSetWidth/Height /// (Scintilla feature 2627) /// unsafe void RegisterRGBAImage(int type, string pixels); /// Scroll to start of document. (Scintilla feature 2628) void ScrollToStart(); /// Scroll to end of document. (Scintilla feature 2629) void ScrollToEnd(); /// Set the technology used. (Scintilla feature 2630) void SetTechnology(int technology); /// Get the tech. (Scintilla feature 2631) int GetTechnology(); /// Create an ILoader*. (Scintilla feature 2632) int CreateLoader(int bytes); /// On OS X, show a find indicator. (Scintilla feature 2640) void FindIndicatorShow(Position start, Position end); /// On OS X, flash a find indicator, then fade out. (Scintilla feature 2641) void FindIndicatorFlash(Position start, Position end); /// On OS X, hide the find indicator. (Scintilla feature 2642) void FindIndicatorHide(); /// /// Move caret to before first visible character on display line. /// If already there move to first character on display line. /// (Scintilla feature 2652) /// void VCHomeDisplay(); /// Like VCHomeDisplay but extending selection to new caret position. (Scintilla feature 2653) void VCHomeDisplayExtend(); /// Is the caret line always visible? (Scintilla feature 2654) bool GetCaretLineVisibleAlways(); /// Sets the caret line to always visible. (Scintilla feature 2655) void SetCaretLineVisibleAlways(bool alwaysVisible); /// Set the line end types that the application wants to use. May not be used if incompatible with lexer or encoding. (Scintilla feature 2656) void SetLineEndTypesAllowed(int lineEndBitSet); /// Get the line end types currently allowed. (Scintilla feature 2657) int GetLineEndTypesAllowed(); /// Get the line end types currently recognised. May be a subset of the allowed types due to lexer limitation. (Scintilla feature 2658) int GetLineEndTypesActive(); /// Set the way a character is drawn. (Scintilla feature 2665) unsafe void SetRepresentation(string encodedCharacter, string representation); /// /// Set the way a character is drawn. /// Result is NUL-terminated. /// (Scintilla feature 2666) /// unsafe string GetRepresentation(string encodedCharacter); /// Remove a character representation. (Scintilla feature 2667) unsafe void ClearRepresentation(string encodedCharacter); /// Start notifying the container of all key presses and commands. (Scintilla feature 3001) void StartRecord(); /// Stop notifying the container of all key presses and commands. (Scintilla feature 3002) void StopRecord(); /// Set the lexing language of the document. (Scintilla feature 4001) void SetLexer(int lexer); /// Retrieve the lexing language of the document. (Scintilla feature 4002) int GetLexer(); /// Colourise a segment of the document using the current lexing language. (Scintilla feature 4003) void Colourise(Position start, Position end); /// Set up a value that may be used by a lexer for some optional feature. (Scintilla feature 4004) unsafe void SetProperty(string key, string value); /// Set up the key words used by the lexer. (Scintilla feature 4005) unsafe void SetKeyWords(int keywordSet, string keyWords); /// Set the lexing language of the document based on string name. (Scintilla feature 4006) unsafe void SetLexerLanguage(string language); /// Load a lexer library (dll / so). (Scintilla feature 4007) unsafe void LoadLexerLibrary(string path); /// /// Retrieve a "property" value previously set with SetProperty. /// Result is NUL-terminated. /// (Scintilla feature 4008) /// unsafe string GetProperty(string key); /// /// Retrieve a "property" value previously set with SetProperty, /// with "$()" variable replacement on returned buffer. /// Result is NUL-terminated. /// (Scintilla feature 4009) /// unsafe string GetPropertyExpanded(string key); /// /// Retrieve a "property" value previously set with SetProperty, /// interpreted as an int AFTER any "$()" variable replacement. /// (Scintilla feature 4010) /// unsafe int GetPropertyInt(string key); /// Retrieve the number of bits the current lexer needs for styling. (Scintilla feature 4011) int GetStyleBitsNeeded(); /// /// Retrieve the name of the lexer. /// Return the length of the text. /// Result is NUL-terminated. /// (Scintilla feature 4012) /// unsafe string GetLexerLanguage(); /// For private communication between an application and a known lexer. (Scintilla feature 4013) int PrivateLexerCall(int operation, int pointer); /// /// Retrieve a '\n' separated list of properties understood by the current lexer. /// Result is NUL-terminated. /// (Scintilla feature 4014) /// unsafe string PropertyNames(); /// Retrieve the type of a property. (Scintilla feature 4015) unsafe int PropertyType(string name); /// /// Describe a property. /// Result is NUL-terminated. /// (Scintilla feature 4016) /// unsafe string DescribeProperty(string name); /// /// Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer. /// Result is NUL-terminated. /// (Scintilla feature 4017) /// unsafe string DescribeKeyWordSets(); /// /// Bit set of LineEndType enumertion for which line ends beyond the standard /// LF, CR, and CRLF are supported by the lexer. /// (Scintilla feature 4018) /// int GetLineEndTypesSupported(); /// Allocate a set of sub styles for a particular base style, returning start of range (Scintilla feature 4020) int AllocateSubStyles(int styleBase, int numberStyles); /// The starting style number for the sub styles associated with a base style (Scintilla feature 4021) int GetSubStylesStart(int styleBase); /// The number of sub styles associated with a base style (Scintilla feature 4022) int GetSubStylesLength(int styleBase); /// For a sub style, return the base style, else return the argument. (Scintilla feature 4027) int GetStyleFromSubStyle(int subStyle); /// For a secondary style, return the primary style, else return the argument. (Scintilla feature 4028) int GetPrimaryStyleFromStyle(int style); /// Free allocated sub styles (Scintilla feature 4023) void FreeSubStyles(); /// Set the identifiers that are shown in a particular style (Scintilla feature 4024) unsafe void SetIdentifiers(int style, string identifiers); /// /// Where styles are duplicated by a feature such as active/inactive code /// return the distance between the two types. /// (Scintilla feature 4025) /// int DistanceToSecondaryStyles(); /// /// Get the set of base styles that can be extended with sub styles /// Result is NUL-terminated. /// (Scintilla feature 4026) /// unsafe string GetSubStyleBases(); /// /// Deprecated in 2.30 /// In palette mode? /// (Scintilla feature 2139) /// bool GetUsePalette(); /// /// In palette mode, Scintilla uses the environment's palette calls to display /// more colours. This may lead to ugly displays. /// (Scintilla feature 2039) /// void SetUsePalette(bool usePalette); /// /// Deprecated in 3.5.5 /// Always interpret keyboard input as Unicode /// (Scintilla feature 2521) /// void SetKeysUnicode(bool keysUnicode); /// Are keys always interpreted as Unicode? (Scintilla feature 2522) bool GetKeysUnicode(); /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ } }