internal int GetReportItemUniqueName(int index)
        {
            int        num        = -1;
            ReportItem reportItem = null;

            Global.Tracer.Assert(index >= 0 && index < m_reportItemColDef.Count);
            m_reportItemColDef.GetReportItem(index, out bool computed, out int internalIndex, out reportItem);
            if (!computed)
            {
                return(m_childrenNonComputedUniqueNames[internalIndex].UniqueName);
            }
            return(m_reportItemInstances[internalIndex].UniqueName);
        }
Beispiel #2
0
        internal ReportItem GetContent(out bool computed)
        {
            ReportItem reportItem = null;

            computed = false;
            if (m_reportItems != null && 0 < m_reportItems.Count)
            {
                m_reportItems.GetReportItem(0, out computed, out int _, out reportItem);
            }
            return(reportItem);
        }
Beispiel #3
0
 public ReportItem this[int index]
 {
     get
     {
         if (0 > index || index >= Count)
         {
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, index, 0, Count);
         }
         ReportItem reportItem = null;
         if (m_reportItems == null || m_reportItems[index] == null)
         {
             int  internalIndex = 0;
             bool computed      = false;
             Microsoft.ReportingServices.ReportProcessing.ReportItem reportItem2 = null;
             m_reportItemColDef.GetReportItem(index, out computed, out internalIndex, out reportItem2);
             NonComputedUniqueNames nonComputedUniqueNames = null;
             ReportItemInstance     reportItemInstance     = null;
             if (!computed)
             {
                 if (m_childrenNonComputedUniqueNames != null)
                 {
                     nonComputedUniqueNames = m_childrenNonComputedUniqueNames[internalIndex];
                 }
             }
             else if (m_reportItemColInstance != null)
             {
                 reportItemInstance = m_reportItemColInstance[internalIndex];
             }
             reportItem = ReportItem.CreateItem(index, reportItem2, reportItemInstance, m_renderingContext, nonComputedUniqueNames);
             if (m_renderingContext.CacheState)
             {
                 if (m_reportItems == null)
                 {
                     m_reportItems = new ReportItem[Count];
                 }
                 m_reportItems[index] = reportItem;
             }
         }
         else
         {
             reportItem = m_reportItems[index];
         }
         return(reportItem);
     }
 }