public void SetProperty(string name, string value) { NativeScintilla.SetProperty(name, value); }
/// <summary> /// Shows a UserList window /// </summary> /// <param name="listType">Index of the userlist to show. Can be any integer</param> /// <param name="list">List of words to show separated by " "</param> /// <remarks> /// UserLists are not as powerful as autocomplete but can be assigned to a user defined index. /// </remarks> public void ShowUserList(int listType, string list) { NativeScintilla.UserListShow(listType, list); }
/// <summary> /// Accepts the current AutoComplete window entry /// </summary> /// <remarks> /// If the AutoComplete window is open Accept() will close it. This also causes the /// <see cref="Scintilla.AutoCompleteAccepted" /> event to fire /// </remarks> public void Accept() { NativeScintilla.AutoCComplete(); }
protected internal Selection(Scintilla scintilla) : base(scintilla) { NativeScintilla.SetSelBack(BackColor != Color.Transparent, Utilities.ColorToRgb(BackColor)); NativeScintilla.SetSelFore(ForeColor != Color.Transparent, Utilities.ColorToRgb(ForeColor)); }
public void SelectNone() { NativeScintilla.SetSel(-1, -1); }
public List <Range> FindAll(string searchString, SearchFlags flags) { return(FindAll(0, NativeScintilla.GetTextLength(), searchString, flags)); }
public List <Range> ReplaceAll(string searchString, string replaceString, SearchFlags flags) { return(ReplaceAll(0, NativeScintilla.GetTextLength(), searchString, replaceString, flags)); }
public void Join(int startLine, int endLine) { NativeScintilla.SetTargetStart(startLine); NativeScintilla.SetTargetEnd(endLine); Scintilla.DirectMessage(NativeMethods.SCI_LINESJOIN, IntPtr.Zero, IntPtr.Zero); }
private void Show(int startLine, int endLine) { NativeScintilla.ShowLines(startLine, endLine); }
public Line FromVisibleLineNumber(int displayLine) { return(new Line(Scintilla, NativeScintilla.DocLineFromVisible(displayLine))); }
public void Hide(int startLine, int endLine) { NativeScintilla.HideLines(startLine, endLine); }
public Line FromPosition(int position) { return(this[NativeScintilla.LineFromPosition(position)]); }
public int GetPropertyInt(string name, int defaultValue) { return(NativeScintilla.GetPropertyInt(name, defaultValue)); }
public void Colorize(int startPos, int endPos) { NativeScintilla.Colourise(startPos, endPos); }
public Range Find(string searchString, SearchFlags searchflags) { return(Find(0, NativeScintilla.GetTextLength(), searchString, searchflags)); }
public int GetTextWidth(string text) { return(NativeScintilla.TextWidth(_index, text)); }
public List <Range> FindAll(Regex findExpression) { return(FindAll(0, NativeScintilla.GetTextLength(), findExpression)); }
public void Apply(int length) { Apply(NativeScintilla.GetCurrentPos(), length); }
public List <Range> ReplaceAll(Regex findExpression, string replaceString) { return(ReplaceAll(0, NativeScintilla.GetTextLength(), findExpression, replaceString)); }
public void Apply(int position, int length) { NativeScintilla.StartStyling(position, 0xff); NativeScintilla.SetStyling(length, _index); }
public void Clear() { NativeScintilla.Clear(); }
public void Position(int pos) { NativeScintilla.GotoPos(pos); }
public void SelectAll() { NativeScintilla.SelectAll(); }
public void Line(int number) { NativeScintilla.GotoLine(number); }
/// <summary> /// Converts all lines in the document to the given mode. /// </summary> /// <param name="toMode">The EndOfLineMode to convert all lines to </param> public void ConvertAllLines(EndOfLineMode toMode) { NativeScintilla.ConvertEols((int)toMode); }
public Range Find(Regex findExpression) { return(Find(new Range(0, NativeScintilla.GetTextLength(), Scintilla), findExpression, false)); }
/// <summary> /// Cancels the autocomplete window /// </summary> /// <remarks> /// If the AutoComplete window is displayed calling Cancel() will close the window. /// </remarks> public void Cancel() { NativeScintilla.AutoCCancel(); }
public Range Find(Regex findExpression, bool searchUp) { return(Find(new Range(0, NativeScintilla.GetTextLength(), Scintilla), findExpression, searchUp)); }
/// <summary> /// Registers an image with index to be displayed in the AutoComplete window. /// </summary> /// <param name="type">Index of the image to register to</param> /// <param name="xpmImage">Image in the XPM image format</param> public void RegisterImage(int type, string xpmImage) { NativeScintilla.RegisterImage(type, xpmImage); }
public void SetKeywords(int keywordSet, string list) { NativeScintilla.SetKeywords(keywordSet, list); }