internal ChartFormat ToChartFormat() { var cf = new ChartFormat(); cf.PivotArea = PivotArea.ToPivotArea(); cf.Chart = Chart; cf.Format = Format; if (Series) { cf.Series = Series; } return(cf); }
internal CalculatedItem ToCalculatedItem() { var ci = new CalculatedItem(); if (Field != null) { ci.Field = Field.Value; } if ((Formula != null) && (Formula.Length > 0)) { ci.Formula = Formula; } ci.PivotArea = PivotArea.ToPivotArea(); return(ci); }
internal Format ToFormat() { var f = new Format(); f.PivotArea = PivotArea.ToPivotArea(); if (Action != FormatActionValues.Formatting) { f.Action = Action; } if (FormatId != null) { f.FormatId = FormatId.Value; } return(f); }