Exemplo n.º 1
0
 public TablixCornerCell(Tablix owner, int rowIndex, int colIndex, AspNetCore.ReportingServices.ReportIntermediateFormat.TablixCornerCell cellDef)
 {
     this.m_owner       = owner;
     this.m_rowIndex    = rowIndex;
     this.m_columnIndex = colIndex;
     this.m_cellDef     = cellDef;
 }
 public override TablixCornerCell this[int index]
 {
     get
     {
         if (index >= 0 && index < this.Count)
         {
             if (this.m_cellROMDefs[index] == null)
             {
                 if (this.m_owner.IsOldSnapshot)
                 {
                     if (this.m_rowIndex == 0 && index == 0)
                     {
                         this.m_cellROMDefs[index] = new TablixCornerCell(this.m_owner, this.m_rowIndex, index, this.m_cornerDef);
                     }
                 }
                 else
                 {
                     AspNetCore.ReportingServices.ReportIntermediateFormat.TablixCornerCell tablixCornerCell = this.m_rowDef[index];
                     if (tablixCornerCell.RowSpan > 0 && tablixCornerCell.ColSpan > 0)
                     {
                         this.m_cellROMDefs[index] = new TablixCornerCell(this.m_owner, this.m_rowIndex, index, tablixCornerCell);
                     }
                 }
             }
             return(this.m_cellROMDefs[index]);
         }
         throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, this.Count);
     }
 }