示例#1
0
        internal SLPivotHierarchy Clone()
        {
            SLPivotHierarchy ph = new SLPivotHierarchy();

            ph.Outline = this.Outline;
            ph.MultipleItemSelectionAllowed = this.MultipleItemSelectionAllowed;
            ph.SubtotalTop             = this.SubtotalTop;
            ph.ShowInFieldList         = this.ShowInFieldList;
            ph.DragToRow               = this.DragToRow;
            ph.DragToColumn            = this.DragToColumn;
            ph.DragToPage              = this.DragToPage;
            ph.DragToData              = this.DragToData;
            ph.DragOff                 = this.DragOff;
            ph.IncludeNewItemsInFilter = this.IncludeNewItemsInFilter;
            ph.Caption                 = this.Caption;

            ph.MemberProperties = new List <SLMemberProperty>();
            foreach (SLMemberProperty mp in this.MemberProperties)
            {
                ph.MemberProperties.Add(mp.Clone());
            }

            ph.Members = new List <SLMembers>();
            foreach (SLMembers mems in this.Members)
            {
                ph.Members.Add(mems.Clone());
            }

            return(ph);
        }
        internal SLPivotHierarchy Clone()
        {
            SLPivotHierarchy ph = new SLPivotHierarchy();
            ph.Outline = this.Outline;
            ph.MultipleItemSelectionAllowed = this.MultipleItemSelectionAllowed;
            ph.SubtotalTop = this.SubtotalTop;
            ph.ShowInFieldList = this.ShowInFieldList;
            ph.DragToRow = this.DragToRow;
            ph.DragToColumn = this.DragToColumn;
            ph.DragToPage = this.DragToPage;
            ph.DragToData = this.DragToData;
            ph.DragOff = this.DragOff;
            ph.IncludeNewItemsInFilter = this.IncludeNewItemsInFilter;
            ph.Caption = this.Caption;

            ph.MemberProperties = new List<SLMemberProperty>();
            foreach (SLMemberProperty mp in this.MemberProperties)
            {
                ph.MemberProperties.Add(mp.Clone());
            }

            ph.Members = new List<SLMembers>();
            foreach (SLMembers mems in this.Members)
            {
                ph.Members.Add(mems.Clone());
            }

            return ph;
        }