public static int FindContentItem(IBrowsePivot pivot, string strSearch) { if (pivot == null) { throw new ArgumentNullException("pivot"); } return(FindContentItem(pivot.Content, strSearch)); }
public static int FindContentItem(IBrowsePivot pivot, string strSearch) { if (pivot == null) { throw new ArgumentNullException("pivot"); } return FindContentItem(pivot.Content, strSearch); }
public virtual int FindContentItem(string strSearch) { if (string.IsNullOrEmpty(strSearch)) { return(-1); } IBrowsePivot pivot = this as IBrowsePivot; if (pivot == null) { throw new InvalidOperationException("BaseBrowsePivot.FindContentItem requires the derived class be an IBrowsePivot."); } if (this.m_findDelegate != null) { return(this.m_findDelegate(pivot, strSearch)); } return(FindContentItem(pivot, strSearch)); }