コード例 #1
0
        public TextRun(TextRunInstance instance, bool hideDuplicates)
        {
            this.m_source = instance.Definition;
            Utility.AddInstanceStyles(instance.Style, ref this.m_styles);
            if (instance.IsCompiled)
            {
                this.m_text    = instance.Value;
                this.m_toolTip = instance.ToolTip;
            }
            else
            {
                this.m_text    = ((this.m_source.Value != null && (this.m_source.FormattedValueExpressionBased || hideDuplicates)) ? instance.Value : null);
                this.m_toolTip = ((this.m_source.ToolTip != null && this.m_source.ToolTip.IsExpression) ? instance.ToolTip : null);
            }
            ActionInfo actionInfo = this.m_source.ActionInfo;

            if (instance.IsCompiled)
            {
                CompiledTextRunInstance compiledTextRunInstance = instance as CompiledTextRunInstance;
                ActionInstance          actionInstance          = compiledTextRunInstance.ActionInstance;
                if (actionInstance != null)
                {
                    this.m_hyperlinks = new List <string>(1);
                    ReportUrl hyperlink = actionInstance.Hyperlink;
                    string    item      = null;
                    if (hyperlink != null)
                    {
                        item = hyperlink.ToString();
                    }
                    this.m_hyperlinks.Add(item);
                }
            }
            else if (actionInfo != null)
            {
                ActionCollection actions = actionInfo.Actions;
                this.m_hyperlinks = new List <string>(actions.Count);
                foreach (AspNetCore.ReportingServices.OnDemandReportRendering.Action item3 in actions)
                {
                    ReportUrl hyperlink2 = item3.Instance.Hyperlink;
                    string    item2      = null;
                    if (hyperlink2 != null)
                    {
                        item2 = hyperlink2.ToString();
                    }
                    this.m_hyperlinks.Add(item2);
                }
            }
            this.m_uniqueName = instance.UniqueName;
            if (this.m_source.MarkupType != null && this.m_source.MarkupType.IsExpression)
            {
                this.m_markup = StyleEnumConverter.Translate(instance.MarkupType);
            }
        }
コード例 #2
0
 public TextRun(AspNetCore.ReportingServices.OnDemandReportRendering.TextRun textRun, CompiledTextRunInstance compiledTextRun, PageContext pageContext)
     : base(textRun)
 {
     this.m_compiledSource = compiledTextRun;
 }
コード例 #3
0
 internal TextRun(Microsoft.ReportingServices.OnDemandReportRendering.TextRun textRun, CompiledTextRunInstance compiledTextRun, PageContext pageContext)
     : base(textRun)
 {
     m_compiledSource = compiledTextRun;
 }