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