/// <summary> /// Delegate that's called whenever the index finds an item of text. /// </summary> /// <param name="item">The item to process</param> /// <returns>True (always), indicating that the query should continue.</returns> private bool CheckText(ISpatialObject item) { Debug.Assert(item is TextFeature); TextFeature label = (TextFeature)item; // Return if the label is non-topological if (!label.IsTopological) { return(true); } // Check the label & restrict to requested types. CheckType types = TextCheck.CheckLabel(label); types &= m_Options; if (types != CheckType.Null) { TextCheck check = new TextCheck(label, types); m_Result.Add(check); } return(OnCheck()); }
/// <summary> /// Delegate that's called whenever the index finds an item of text. /// </summary> /// <param name="item">The item to process</param> /// <returns>True (always), indicating that the query should continue.</returns> private bool CheckText(ISpatialObject item) { Debug.Assert(item is TextFeature); TextFeature label = (TextFeature)item; // Return if the label is non-topological if (!label.IsTopological) return true; // Check the label & restrict to requested types. CheckType types = TextCheck.CheckLabel(label); types &= m_Options; if (types!=CheckType.Null) { TextCheck check = new TextCheck(label, types); m_Result.Add(check); } return OnCheck(); }