public static void HighlightIdentifier(Rect position, string identifier) { if (Highlighter.searchMode == HighlightSearchMode.Identifier || Highlighter.searchMode == HighlightSearchMode.Auto) { Highlighter.Handle(position, identifier); } }
/// <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); }