internal void FromFormat(Format f)
        {
            SetAllNull();

            if (f.PivotArea != null)
            {
                PivotArea.FromPivotArea(f.PivotArea);
            }

            if (f.Action != null)
            {
                Action = f.Action.Value;
            }
            if (f.FormatId != null)
            {
                FormatId = f.FormatId.Value;
            }
        }
        internal void FromCalculatedItem(CalculatedItem ci)
        {
            SetAllNull();

            if (ci.Field != null)
            {
                Field = ci.Field.Value;
            }
            if (ci.Formula != null)
            {
                Formula = ci.Formula.Value;
            }

            if (ci.PivotArea != null)
            {
                PivotArea.FromPivotArea(ci.PivotArea);
            }
        }
        internal void FromChartFormat(ChartFormat cf)
        {
            SetAllNull();

            if (cf.PivotArea != null)
            {
                PivotArea.FromPivotArea(cf.PivotArea);
            }

            if (cf.Chart != null)
            {
                Chart = cf.Chart.Value;
            }
            if (cf.Format != null)
            {
                Format = cf.Format.Value;
            }
            if (cf.Series != null)
            {
                Series = cf.Series.Value;
            }
        }