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