コード例 #1
0
        public RPLElementStyle GetSimpleStyles(RPLParagraph paragraph, RPLTextRun textRun)
        {
            RPLStyleProps sharedProps    = null;
            RPLStyleProps nonSharedProps = null;

            this.GetSimpleStyles(out nonSharedProps, out sharedProps, paragraph, textRun);
            return(new RPLElementStyle(nonSharedProps, sharedProps));
        }
コード例 #2
0
 public void AddTextRun(RPLTextRun textRun)
 {
     if (this.m_textRuns == null)
     {
         this.m_textRuns = new Queue <RPLTextRun>();
     }
     this.m_textRuns.Enqueue(textRun);
     this.m_textRunCount++;
 }
コード例 #3
0
 public void GetSimpleStyles(out RPLStyleProps nonShared, out RPLStyleProps shared, RPLParagraph paragraph, RPLTextRun textRun)
 {
     shared    = new RPLStyleProps();
     nonShared = new RPLStyleProps();
     shared.AddAll(this.ElementPropsDef.SharedStyle);
     nonShared.AddAll(this.ElementProps.NonSharedStyle);
     nonShared.AddAll(paragraph.ElementProps.NonSharedStyle);
     if (paragraph.ElementProps.Definition != null)
     {
         shared.AddAll(paragraph.ElementProps.Definition.SharedStyle);
     }
     nonShared.AddAll(textRun.ElementProps.NonSharedStyle);
     if (textRun.ElementProps.Definition != null)
     {
         shared.AddAll(textRun.ElementProps.Definition.SharedStyle);
     }
 }