示例#1
0
 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();
 }
示例#4
0
 protected internal Selection(Scintilla scintilla) : base(scintilla)
 {
     NativeScintilla.SetSelBack(BackColor != Color.Transparent, Utilities.ColorToRgb(BackColor));
     NativeScintilla.SetSelFore(ForeColor != Color.Transparent, Utilities.ColorToRgb(ForeColor));
 }
示例#5
0
 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)]);
 }
示例#13
0
 public int GetPropertyInt(string name, int defaultValue)
 {
     return(NativeScintilla.GetPropertyInt(name, defaultValue));
 }
示例#14
0
 public void Colorize(int startPos, int endPos)
 {
     NativeScintilla.Colourise(startPos, endPos);
 }
示例#15
0
 public Range Find(string searchString, SearchFlags searchflags)
 {
     return(Find(0, NativeScintilla.GetTextLength(), searchString, searchflags));
 }
示例#16
0
 public int GetTextWidth(string text)
 {
     return(NativeScintilla.TextWidth(_index, text));
 }
示例#17
0
 public List <Range> FindAll(Regex findExpression)
 {
     return(FindAll(0, NativeScintilla.GetTextLength(), findExpression));
 }
示例#18
0
 public void Apply(int length)
 {
     Apply(NativeScintilla.GetCurrentPos(), length);
 }
示例#19
0
 public List <Range> ReplaceAll(Regex findExpression, string replaceString)
 {
     return(ReplaceAll(0, NativeScintilla.GetTextLength(), findExpression, replaceString));
 }
示例#20
0
 public void Apply(int position, int length)
 {
     NativeScintilla.StartStyling(position, 0xff);
     NativeScintilla.SetStyling(length, _index);
 }
示例#21
0
 public void Clear()
 {
     NativeScintilla.Clear();
 }
示例#22
0
 public void Position(int pos)
 {
     NativeScintilla.GotoPos(pos);
 }
示例#23
0
 public void SelectAll()
 {
     NativeScintilla.SelectAll();
 }
示例#24
0
 public void Line(int number)
 {
     NativeScintilla.GotoLine(number);
 }
示例#25
0
 /// <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);
 }
示例#26
0
 public Range Find(Regex findExpression)
 {
     return(Find(new Range(0, NativeScintilla.GetTextLength(), Scintilla), findExpression, false));
 }
示例#27
0
 /// <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();
 }
示例#28
0
 public Range Find(Regex findExpression, bool searchUp)
 {
     return(Find(new Range(0, NativeScintilla.GetTextLength(), Scintilla), findExpression, searchUp));
 }
示例#29
0
 /// <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);
 }
示例#30
0
 public void SetKeywords(int keywordSet, string list)
 {
     NativeScintilla.SetKeywords(keywordSet, list);
 }