コード例 #1
0
        internal SLTableColumn Clone()
        {
            var tc = new SLTableColumn();
            tc.HasCalculatedColumnFormula = HasCalculatedColumnFormula;
            tc.CalculatedColumnFormula = CalculatedColumnFormula.Clone();
            tc.HasTotalsRowFormula = HasTotalsRowFormula;
            tc.TotalsRowFormula = TotalsRowFormula.Clone();
            tc.HasXmlColumnProperties = HasXmlColumnProperties;
            tc.XmlColumnProperties = XmlColumnProperties.Clone();
            tc.Id = Id;
            tc.UniqueName = UniqueName;
            tc.Name = Name;
            tc.HasTotalsRowFunction = HasTotalsRowFunction;
            tc.vTotalsRowFunction = vTotalsRowFunction;
            tc.TotalsRowLabel = TotalsRowLabel;
            tc.QueryTableFieldId = QueryTableFieldId;
            tc.HeaderRowDifferentialFormattingId = HeaderRowDifferentialFormattingId;
            tc.DataFormatId = DataFormatId;
            tc.TotalsRowDifferentialFormattingId = TotalsRowDifferentialFormattingId;
            tc.HeaderRowCellStyle = HeaderRowCellStyle;
            tc.DataCellStyle = DataCellStyle;
            tc.TotalsRowCellStyle = TotalsRowCellStyle;

            return tc;
        }
コード例 #2
0
        internal void FromTotalsRowFormula(TotalsRowFormula trf)
        {
            this.SetAllNull();

            if (trf.Array != null && trf.Array.Value) this.Array = true;
            this.Text = trf.Text;
        }
コード例 #3
0
        internal TableColumn ToTableColumn()
        {
            var tc = new TableColumn();
            if (HasCalculatedColumnFormula)
                tc.CalculatedColumnFormula = CalculatedColumnFormula.ToCalculatedColumnFormula();
            if (HasTotalsRowFormula)
                tc.TotalsRowFormula = TotalsRowFormula.ToTotalsRowFormula();
            if (HasXmlColumnProperties)
                tc.XmlColumnProperties = XmlColumnProperties.ToXmlColumnProperties();

            tc.Id = Id;
            if (UniqueName != null) tc.UniqueName = UniqueName;
            tc.Name = Name;

            if (HasTotalsRowFunction) tc.TotalsRowFunction = TotalsRowFunction;
            if (TotalsRowLabel != null) tc.TotalsRowLabel = TotalsRowLabel;
            if (QueryTableFieldId != null) tc.QueryTableFieldId = QueryTableFieldId.Value;
            if (HeaderRowDifferentialFormattingId != null)
                tc.HeaderRowDifferentialFormattingId = HeaderRowDifferentialFormattingId.Value;
            if (DataFormatId != null) tc.DataFormatId = DataFormatId.Value;
            if (TotalsRowDifferentialFormattingId != null)
                tc.TotalsRowDifferentialFormattingId = TotalsRowDifferentialFormattingId.Value;
            if (HeaderRowCellStyle != null) tc.HeaderRowCellStyle = HeaderRowCellStyle;
            if (DataCellStyle != null) tc.DataCellStyle = DataCellStyle;
            if (TotalsRowCellStyle != null) tc.TotalsRowCellStyle = TotalsRowCellStyle;

            return tc;
        }
コード例 #4
0
        internal void FromTotalsRowFormula(TotalsRowFormula trf)
        {
            this.SetAllNull();

            if (trf.Array != null && trf.Array.Value) this.Array = true;
            this.Text = trf.Text;
        }
コード例 #5
0
        internal void FromTotalsRowFormula(TotalsRowFormula trf)
        {
            SetAllNull();

            if ((trf.Array != null) && trf.Array.Value)
            {
                Array = true;
            }
            Text = trf.Text;
        }
コード例 #6
0
        internal TotalsRowFormula ToTotalsRowFormula()
        {
            TotalsRowFormula trf = new TotalsRowFormula();
            if (this.Array) trf.Array = this.Array;

            if (SLTool.ToPreserveSpace(this.Text))
            {
                trf.Space = SpaceProcessingModeValues.Preserve;
            }
            trf.Text = this.Text;

            return trf;
        }
コード例 #7
0
        internal TotalsRowFormula ToTotalsRowFormula()
        {
            TotalsRowFormula trf = new TotalsRowFormula();
            if (this.Array) trf.Array = this.Array;

            if (SLTool.ToPreserveSpace(this.Text))
            {
                trf.Space = SpaceProcessingModeValues.Preserve;
            }
            trf.Text = this.Text;

            return trf;
        }
コード例 #8
0
        internal TotalsRowFormula ToTotalsRowFormula()
        {
            var trf = new TotalsRowFormula();

            if (Array)
            {
                trf.Array = Array;
            }

            if (SLTool.ToPreserveSpace(Text))
            {
                trf.Space = SpaceProcessingModeValues.Preserve;
            }
            trf.Text = Text;

            return(trf);
        }
コード例 #9
0
        internal void FromTableColumn(TableColumn tc)
        {
            SetAllNull();

            if (tc.CalculatedColumnFormula != null)
            {
                HasCalculatedColumnFormula = true;
                CalculatedColumnFormula.FromCalculatedColumnFormula(tc.CalculatedColumnFormula);
            }
            if (tc.TotalsRowFormula != null)
            {
                HasTotalsRowFormula = true;
                TotalsRowFormula.FromTotalsRowFormula(tc.TotalsRowFormula);
            }
            if (tc.XmlColumnProperties != null)
            {
                HasXmlColumnProperties = true;
                XmlColumnProperties.FromXmlColumnProperties(tc.XmlColumnProperties);
            }

            Id = tc.Id.Value;
            if (tc.UniqueName != null) UniqueName = tc.UniqueName.Value;
            Name = tc.Name.Value;

            if (tc.TotalsRowFunction != null) TotalsRowFunction = tc.TotalsRowFunction.Value;
            if (tc.TotalsRowLabel != null) TotalsRowLabel = tc.TotalsRowLabel.Value;
            if (tc.QueryTableFieldId != null) QueryTableFieldId = tc.QueryTableFieldId.Value;
            if (tc.HeaderRowDifferentialFormattingId != null)
                HeaderRowDifferentialFormattingId = tc.HeaderRowDifferentialFormattingId.Value;
            if (tc.DataFormatId != null) DataFormatId = tc.DataFormatId.Value;
            if (tc.TotalsRowDifferentialFormattingId != null)
                TotalsRowDifferentialFormattingId = tc.TotalsRowDifferentialFormattingId.Value;
            if (tc.HeaderRowCellStyle != null) HeaderRowCellStyle = tc.HeaderRowCellStyle.Value;
            if (tc.DataCellStyle != null) DataCellStyle = tc.DataCellStyle.Value;
            if (tc.TotalsRowCellStyle != null) TotalsRowCellStyle = tc.TotalsRowCellStyle.Value;
        }