Exemple #1
0
 public static void HighlightIdentifier(Rect position, string identifier)
 {
     if (Highlighter.searchMode == HighlightSearchMode.Identifier || Highlighter.searchMode == HighlightSearchMode.Auto)
     {
         Highlighter.Handle(position, identifier);
     }
 }
Exemple #2
0
 /// <summary>
 ///   <para>Call this method to create an identifiable rect that the Highlighter can find.</para>
 /// </summary>
 /// <param name="position">The position to make highlightable.</param>
 /// <param name="identifier">The identifier text of the rect.</param>
 public static void HighlightIdentifier(Rect position, string identifier)
 {
     if (Highlighter.searchMode != HighlightSearchMode.Identifier && Highlighter.searchMode != HighlightSearchMode.Auto)
     {
         return;
     }
     Highlighter.Handle(position, identifier);
 }