internal SLPivotField Clone()
        {
            SLPivotField pf = new SLPivotField();
            pf.Name = this.Name;
            pf.Axis = this.Axis;
            pf.DataField = this.DataField;
            pf.SubtotalCaption = this.SubtotalCaption;
            pf.ShowDropDowns = this.ShowDropDowns;
            pf.HiddenLevel = this.HiddenLevel;
            pf.UniqueMemberProperty = this.UniqueMemberProperty;
            pf.Compact = this.Compact;
            pf.AllDrilled = this.AllDrilled;
            pf.NumberFormatId = this.NumberFormatId;
            pf.Outline = this.Outline;
            pf.SubtotalTop = this.SubtotalTop;
            pf.DragToRow = this.DragToRow;
            pf.DragToColumn = this.DragToColumn;
            pf.MultipleItemSelectionAllowed = this.MultipleItemSelectionAllowed;
            pf.DragToPage = this.DragToPage;
            pf.DragToData = this.DragToData;
            pf.DragOff = this.DragOff;
            pf.ShowAll = this.ShowAll;
            pf.InsertBlankRow = this.InsertBlankRow;
            pf.ServerField = this.ServerField;
            pf.InsertPageBreak = this.InsertPageBreak;
            pf.AutoShow = this.AutoShow;
            pf.TopAutoShow = this.TopAutoShow;
            pf.HideNewItems = this.HideNewItems;
            pf.MeasureFilter = this.MeasureFilter;
            pf.IncludeNewItemsInFilter = this.IncludeNewItemsInFilter;
            pf.ItemPageCount = this.ItemPageCount;
            pf.SortType = this.SortType;
            pf.DataSourceSort = this.DataSourceSort;
            pf.NonAutoSortDefault = this.NonAutoSortDefault;
            pf.RankBy = this.RankBy;
            pf.DefaultSubtotal = this.DefaultSubtotal;
            pf.SumSubtotal = this.SumSubtotal;
            pf.CountASubtotal = this.CountASubtotal;
            pf.AverageSubTotal = this.AverageSubTotal;
            pf.MaxSubtotal = this.MaxSubtotal;
            pf.MinSubtotal = this.MinSubtotal;
            pf.ApplyProductInSubtotal = this.ApplyProductInSubtotal;
            pf.CountSubtotal = this.CountSubtotal;
            pf.ApplyStandardDeviationInSubtotal = this.ApplyStandardDeviationInSubtotal;
            pf.ApplyStandardDeviationPInSubtotal = this.ApplyStandardDeviationPInSubtotal;
            pf.ApplyVarianceInSubtotal = this.ApplyVarianceInSubtotal;
            pf.ApplyVariancePInSubtotal = this.ApplyVariancePInSubtotal;
            pf.ShowPropCell = this.ShowPropCell;
            pf.ShowPropertyTooltip = this.ShowPropertyTooltip;
            pf.ShowPropAsCaption = this.ShowPropAsCaption;
            pf.DefaultAttributeDrillState = this.DefaultAttributeDrillState;

            pf.Items = new List<SLItem>();
            foreach (SLItem it in this.Items)
            {
                pf.Items.Add(it.Clone());
            }

            pf.AutoSortScope = this.AutoSortScope.Clone();
            pf.HasAutoSortScope = this.HasAutoSortScope;

            return pf;
        }
Beispiel #2
0
        internal SLPivotField Clone()
        {
            SLPivotField pf = new SLPivotField();

            pf.Name                              = this.Name;
            pf.Axis                              = this.Axis;
            pf.DataField                         = this.DataField;
            pf.SubtotalCaption                   = this.SubtotalCaption;
            pf.ShowDropDowns                     = this.ShowDropDowns;
            pf.HiddenLevel                       = this.HiddenLevel;
            pf.UniqueMemberProperty              = this.UniqueMemberProperty;
            pf.Compact                           = this.Compact;
            pf.AllDrilled                        = this.AllDrilled;
            pf.NumberFormatId                    = this.NumberFormatId;
            pf.Outline                           = this.Outline;
            pf.SubtotalTop                       = this.SubtotalTop;
            pf.DragToRow                         = this.DragToRow;
            pf.DragToColumn                      = this.DragToColumn;
            pf.MultipleItemSelectionAllowed      = this.MultipleItemSelectionAllowed;
            pf.DragToPage                        = this.DragToPage;
            pf.DragToData                        = this.DragToData;
            pf.DragOff                           = this.DragOff;
            pf.ShowAll                           = this.ShowAll;
            pf.InsertBlankRow                    = this.InsertBlankRow;
            pf.ServerField                       = this.ServerField;
            pf.InsertPageBreak                   = this.InsertPageBreak;
            pf.AutoShow                          = this.AutoShow;
            pf.TopAutoShow                       = this.TopAutoShow;
            pf.HideNewItems                      = this.HideNewItems;
            pf.MeasureFilter                     = this.MeasureFilter;
            pf.IncludeNewItemsInFilter           = this.IncludeNewItemsInFilter;
            pf.ItemPageCount                     = this.ItemPageCount;
            pf.SortType                          = this.SortType;
            pf.DataSourceSort                    = this.DataSourceSort;
            pf.NonAutoSortDefault                = this.NonAutoSortDefault;
            pf.RankBy                            = this.RankBy;
            pf.DefaultSubtotal                   = this.DefaultSubtotal;
            pf.SumSubtotal                       = this.SumSubtotal;
            pf.CountASubtotal                    = this.CountASubtotal;
            pf.AverageSubTotal                   = this.AverageSubTotal;
            pf.MaxSubtotal                       = this.MaxSubtotal;
            pf.MinSubtotal                       = this.MinSubtotal;
            pf.ApplyProductInSubtotal            = this.ApplyProductInSubtotal;
            pf.CountSubtotal                     = this.CountSubtotal;
            pf.ApplyStandardDeviationInSubtotal  = this.ApplyStandardDeviationInSubtotal;
            pf.ApplyStandardDeviationPInSubtotal = this.ApplyStandardDeviationPInSubtotal;
            pf.ApplyVarianceInSubtotal           = this.ApplyVarianceInSubtotal;
            pf.ApplyVariancePInSubtotal          = this.ApplyVariancePInSubtotal;
            pf.ShowPropCell                      = this.ShowPropCell;
            pf.ShowPropertyTooltip               = this.ShowPropertyTooltip;
            pf.ShowPropAsCaption                 = this.ShowPropAsCaption;
            pf.DefaultAttributeDrillState        = this.DefaultAttributeDrillState;

            pf.Items = new List <SLItem>();
            foreach (SLItem it in this.Items)
            {
                pf.Items.Add(it.Clone());
            }

            pf.AutoSortScope    = this.AutoSortScope.Clone();
            pf.HasAutoSortScope = this.HasAutoSortScope;

            return(pf);
        }