本文整理匯總了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;
}
}
示例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;
}
}
示例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();
}
示例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;
}
}
示例5: ClearSquiggles
private void ClearSquiggles(ScintillaControl sci)
{
if (sci == null) return;
try
{
sci.RemoveHighlights(2);
}
finally
{
fileWithSquiggles = null;
}
}