Ejemplo n.º 1
0
        internal SLSheetView Clone()
        {
            var sv = new SLSheetView();

            sv.Pane = Pane.Clone();

            sv.Selections = new List <SLSelection>();
            foreach (var sel in Selections)
            {
                sv.Selections.Add(sel.Clone());
            }

            sv.PivotSelections = new List <PivotSelection>();
            foreach (var psel in PivotSelections)
            {
                sv.PivotSelections.Add((PivotSelection)psel.CloneNode(true));
            }

            sv.WindowProtection   = WindowProtection;
            sv.ShowFormulas       = ShowFormulas;
            sv.ShowGridLines      = ShowGridLines;
            sv.ShowRowColHeaders  = ShowRowColHeaders;
            sv.ShowZeros          = ShowZeros;
            sv.RightToLeft        = RightToLeft;
            sv.TabSelected        = TabSelected;
            sv.ShowRuler          = ShowRuler;
            sv.ShowOutlineSymbols = ShowOutlineSymbols;
            sv.DefaultGridColor   = DefaultGridColor;
            sv.ShowWhiteSpace     = ShowWhiteSpace;
            sv.View                      = View;
            sv.TopLeftCell               = TopLeftCell;
            sv.ColorId                   = ColorId;
            sv.iZoomScale                = iZoomScale;
            sv.iZoomScaleNormal          = iZoomScaleNormal;
            sv.iZoomScaleSheetLayoutView = iZoomScaleSheetLayoutView;
            sv.iZoomScalePageLayoutView  = iZoomScalePageLayoutView;
            sv.WorkbookViewId            = WorkbookViewId;

            return(sv);
        }