Beispiel #1
0
        internal ChartSheetProperties ToChartSheetProperties()
        {
            ChartSheetProperties csp = new ChartSheetProperties();

            if (this.HasTabColor)
            {
                csp.TabColor = this.clrTabColor.ToTabColor();
            }

            if (!this.Published)
            {
                csp.Published = this.Published;
            }
            if (this.CodeName.Length > 0)
            {
                csp.CodeName = this.CodeName;
            }

            return(csp);
        }
Beispiel #2
0
        internal ChartSheetProperties ToChartSheetProperties()
        {
            var csp = new ChartSheetProperties();

            if (HasTabColor)
            {
                csp.TabColor = clrTabColor.ToTabColor();
            }

            if (!Published)
            {
                csp.Published = Published;
            }
            if (CodeName.Length > 0)
            {
                csp.CodeName = CodeName;
            }

            return(csp);
        }
Beispiel #3
0
        internal void FromChartSheetProperties(ChartSheetProperties sp)
        {
            this.SetAllNull();
            if (sp.TabColor != null)
            {
                if (sp.TabColor.Indexed != null || sp.TabColor.Theme != null || sp.TabColor.Rgb != null)
                {
                    this.clrTabColor.FromTabColor(sp.TabColor);
                    HasTabColor = (clrTabColor.Color.IsEmpty) ? false : true;
                }
            }

            if (sp.Published != null)
            {
                this.Published = sp.Published.Value;
            }
            if (sp.CodeName != null)
            {
                this.CodeName = sp.CodeName.Value;
            }
        }
        internal ChartSheetProperties ToChartSheetProperties()
        {
            ChartSheetProperties csp = new ChartSheetProperties();

            if (this.HasTabColor)
            {
                csp.TabColor = this.clrTabColor.ToTabColor();
            }

            if (!this.Published) csp.Published = this.Published;
            if (this.CodeName.Length > 0) csp.CodeName = this.CodeName;

            return csp;
        }
        internal void FromChartSheetProperties(ChartSheetProperties sp)
        {
            this.SetAllNull();
            if (sp.TabColor != null)
            {
                if (sp.TabColor.Indexed != null || sp.TabColor.Theme != null || sp.TabColor.Rgb != null)
                {
                    this.clrTabColor.FromTabColor(sp.TabColor);
                    HasTabColor = (clrTabColor.Color.IsEmpty) ? false : true;
                }
            }

            if (sp.Published != null) this.Published = sp.Published.Value;
            if (sp.CodeName != null) this.CodeName = sp.CodeName.Value;
        }