public ListContent this[int index] { get { if (index < 0 || index >= Count) { throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, Count); } ListContent listContent = null; if (index == 0) { listContent = m_firstListContent; } else if (m_listContents != null) { listContent = m_listContents[index - 1]; } if (listContent == null) { listContent = new ListContent(m_owner, index); if (m_owner.RenderingContext.CacheState) { if (index == 0) { m_firstListContent = listContent; } else { if (m_listContents == null) { m_listContents = new ListContent[Count - 1]; } m_listContents[index - 1] = listContent; } } } return(listContent); } }
internal static bool SearchFullList(ListContentCollection contents, SearchContext searchContext) { if (contents == null) { return(false); } bool flag = false; ListContent listContent = null; for (int i = 0; i < contents.Count; i++) { if (flag) { break; } listContent = contents[i]; if (!listContent.Hidden) { flag = listContent.ReportItemCollection.Search(searchContext); } } return(flag); }