private static bool SearchRangeCells(Matrix matrix, int indexRow, IntList hiddenColumns, SearchContext searchContext) { int num = 0; int num2 = 0; bool flag = false; MatrixCellCollection cellCollection = matrix.CellCollection; num = 0; while (!flag && num < matrix.CellColumns) { if (!Matrix.HiddenColumn(hiddenColumns, ref num2, num)) { flag = cellCollection[indexRow, num].ReportItem.Search(searchContext); } num++; } return(flag); }
public ReportSize this[int index] { get { ReportSize reportSize; ReportSizeCollection reportSizeCollection; if (index >= 0 && index < this.Count) { reportSize = null; if (this.m_reportSizeCollection != null && this.m_reportSizeCollection[index] != null) { reportSize = this.m_reportSizeCollection[index]; } if (reportSize == null) { AspNetCore.ReportingServices.ReportProcessing.Matrix matrix = (AspNetCore.ReportingServices.ReportProcessing.Matrix) this.m_owner.ReportItemDef; MatrixInstance matrixInstance = (MatrixInstance)this.m_owner.ReportItemInstance; reportSizeCollection = null; reportSizeCollection = ((!this.m_widthsCollection) ? matrix.CellHeightsForRendering : matrix.CellWidthsForRendering); Global.Tracer.Assert(null != reportSizeCollection); if (this.m_owner.NoRows || matrixInstance == null || matrixInstance.Cells.Count == 0) { reportSize = reportSizeCollection[index]; } else { if (this.m_widthsCollection && matrix.StaticColumns == null) { goto IL_0107; } if (!this.m_widthsCollection && matrix.StaticRows == null) { goto IL_0107; } bool cacheState = this.m_owner.RenderingContext.CacheState; this.m_owner.RenderingContext.CacheState = true; MatrixCellCollection cellCollection = this.m_owner.CellCollection; MatrixCell matrixCell = null; matrixCell = ((!this.m_widthsCollection) ? cellCollection[index, 0] : cellCollection[0, index]); reportSize = reportSizeCollection[matrixCell.ColumnIndex]; this.m_owner.RenderingContext.CacheState = cacheState; } goto IL_0184; } goto IL_01bc; } throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, this.Count); IL_01bc: return(reportSize); IL_0107: reportSize = reportSizeCollection[0]; goto IL_0184; IL_0184: if (this.m_owner.RenderingContext.CacheState) { if (this.m_reportSizeCollection == null) { this.m_reportSizeCollection = new ReportSizeCollection(this.Count); } this.m_reportSizeCollection[index] = reportSize; } goto IL_01bc; } }