public override TextRun this[int i]
 {
     get
     {
         if (i < 0 || i >= Count)
         {
             throw new RenderingObjectModelException(ProcessingErrorCode.rsInvalidParameterRange, i, 0, Count);
         }
         TextRun textRun = m_textRuns[i];
         if (textRun == null)
         {
             if (m_paragraph.IsOldSnapshot)
             {
                 textRun = new ShimTextRun(m_paragraph, m_paragraph.RenderingContext);
             }
             else
             {
                 Microsoft.ReportingServices.ReportIntermediateFormat.TextRun textRun2 = ((InternalParagraph)m_paragraph).ParagraphDef.TextRuns[i];
                 textRun = new InternalTextRun(m_paragraph, i, textRun2, m_paragraph.RenderingContext);
             }
             m_textRuns[i] = textRun;
         }
         return(textRun);
     }
 }
Beispiel #2
0
 internal InternalTextRunInstance(InternalTextRun textRunDef)
     : base(textRunDef)
 {
 }