當前位置: 首頁>>代碼示例>>C#>>正文


C# ScintillaControl.RemoveHighlights方法代碼示例

本文整理匯總了C#中ScintillaNet.ScintillaControl.RemoveHighlights方法的典型用法代碼示例。如果您正苦於以下問題:C# ScintillaControl.RemoveHighlights方法的具體用法?C# ScintillaControl.RemoveHighlights怎麽用?C# ScintillaControl.RemoveHighlights使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ScintillaNet.ScintillaControl的用法示例。


在下文中一共展示了ScintillaControl.RemoveHighlights方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OnCancelHighlight

 private void OnCancelHighlight(ScintillaControl sci)
 {
     if (sci.isHiliteSelected && sci.hasHighlights && sci.SelText.Length == 0)
     {
         sci.RemoveHighlights();
         sci.hasHighlights = false;
     }
 }
開發者ID:heon21st,項目名稱:flashdevelop,代碼行數:8,代碼來源:ScintillaControl.cs

示例2: OnSelectHighlight

 /// <summary>
 /// Provides basic highlighting of selected text
 /// </summary>
 private void OnSelectHighlight(ScintillaControl sci)
 {
     sci.RemoveHighlights();
     if (Control.ModifierKeys == Keys.Control && sci.SelText.Length != 0)
     {
         Language language = Configuration.GetLanguage(sci.ConfigurationLanguage);
         Int32 color = language.editorstyle.HighlightBackColor;
         String pattern = sci.SelText.Trim();
         FRSearch search = new FRSearch(pattern);
         search.WholeWord = true; search.NoCase = false;
         search.Filter = SearchFilter.None; // Everywhere
         sci.AddHighlights(search.Matches(sci.Text), color);
         sci.hasHighlights = true;
     }
 }
開發者ID:heon21st,項目名稱:flashdevelop,代碼行數:18,代碼來源:ScintillaControl.cs

示例3: RefreshHighlights

 /// <summary>
 /// Refreshes the highlights
 /// </summary>
 private void RefreshHighlights(ScintillaControl sci, List<SearchMatch> matches)
 {
     sci.RemoveHighlights();
     if (this.highlightTimer.Enabled) this.highlightTimer.Stop();
     Hashtable table = new Hashtable();
     table["sci"] = sci;
     table["matches"] = matches;
     this.highlightTimer.Tag = table;
     this.highlightTimer.Start();
 }
開發者ID:JoeRobich,項目名稱:flashdevelop,代碼行數:13,代碼來源:QuickFind.cs

示例4: OnCancelHighlight

 /// <summary>
 /// Cancel highlights if not using aggressive highlighting
 /// </summary>
 private void OnCancelHighlight(ScintillaControl sci)
 {
     if (sci.isHiliteSelected && sci.hasHighlights && sci.SelText.Length == 0
         && PluginBase.MainForm.Settings.HighlightMatchingWordsMode != Enums.HighlightMatchingWordsMode.SelectionOrPosition)
     {
         sci.RemoveHighlights(1);
         sci.hasHighlights = false;
     }
 }
開發者ID:ImaginationSydney,項目名稱:flashdevelop,代碼行數:12,代碼來源:ScintillaControl.cs

示例5: ClearSquiggles

 private void ClearSquiggles(ScintillaControl sci)
 {
     if (sci == null) return;
     try
     {
         sci.RemoveHighlights(2);
     }
     finally
     {
         fileWithSquiggles = null;
     }
 }
開發者ID:JoeRobich,項目名稱:flashdevelop,代碼行數:12,代碼來源:Context.cs


注:本文中的ScintillaNet.ScintillaControl.RemoveHighlights方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。