Exemple #1
0
        public static CT_BookView Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BookView ctObj = new CT_BookView();

            if (node.Attributes["visibility"] != null)
            {
                ctObj.visibility = (ST_Visibility)Enum.Parse(typeof(ST_Visibility), node.Attributes["visibility"].Value);
            }
            ctObj.minimized            = XmlHelper.ReadBool(node.Attributes["minimized"]);
            ctObj.showHorizontalScroll = XmlHelper.ReadBool(node.Attributes["showHorizontalScroll"]);
            ctObj.showVerticalScroll   = XmlHelper.ReadBool(node.Attributes["showVerticalScroll"]);
            ctObj.showSheetTabs        = XmlHelper.ReadBool(node.Attributes["showSheetTabs"]);
            ctObj.xWindow                = XmlHelper.ReadInt(node.Attributes["xWindow"]);
            ctObj.yWindow                = XmlHelper.ReadInt(node.Attributes["yWindow"]);
            ctObj.windowWidth            = XmlHelper.ReadUInt(node.Attributes["windowWidth"]);
            ctObj.windowHeight           = XmlHelper.ReadUInt(node.Attributes["windowHeight"]);
            ctObj.tabRatio               = XmlHelper.ReadUInt(node.Attributes["tabRatio"]);
            ctObj.firstSheet             = XmlHelper.ReadUInt(node.Attributes["firstSheet"]);
            ctObj.activeTab              = XmlHelper.ReadUInt(node.Attributes["activeTab"]);
            ctObj.autoFilterDateGrouping = XmlHelper.ReadBool(node.Attributes["autoFilterDateGrouping"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "extLst")
                {
                    ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Exemple #2
0
 public static CT_BookView Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_BookView ctObj = new CT_BookView();
     if (node.Attributes["visibility"] != null)
         ctObj.visibility = (ST_Visibility)Enum.Parse(typeof(ST_Visibility), node.Attributes["visibility"].Value);
     ctObj.minimized = XmlHelper.ReadBool(node.Attributes["minimized"]);
     ctObj.showHorizontalScroll = XmlHelper.ReadBool(node.Attributes["showHorizontalScroll"], true);
     ctObj.showVerticalScroll = XmlHelper.ReadBool(node.Attributes["showVerticalScroll"], true);
     ctObj.showSheetTabs = XmlHelper.ReadBool(node.Attributes["showSheetTabs"], true);
     ctObj.xWindow = XmlHelper.ReadInt(node.Attributes["xWindow"]);
     ctObj.yWindow = XmlHelper.ReadInt(node.Attributes["yWindow"]);
     ctObj.windowWidth = XmlHelper.ReadUInt(node.Attributes["windowWidth"]);
     ctObj.windowHeight = XmlHelper.ReadUInt(node.Attributes["windowHeight"]);
     ctObj.tabRatio = XmlHelper.ReadUInt(node.Attributes["tabRatio"]);
     ctObj.firstSheet = XmlHelper.ReadUInt(node.Attributes["firstSheet"]);
     ctObj.activeTab = XmlHelper.ReadUInt(node.Attributes["activeTab"]);
     ctObj.autoFilterDateGrouping = XmlHelper.ReadBool(node.Attributes["autoFilterDateGrouping"], true);
     foreach (XmlNode childNode in node.ChildNodes)
     {
         if (childNode.LocalName == "extLst")
             ctObj.extLst = CT_ExtensionList.Parse(childNode, namespaceManager);
     }
     return ctObj;
 }
Exemple #3
0
        public CT_BookView AddNewWorkbookView()
        {
            if (this.workbookViewField == null)
            {
                this.workbookViewField = new List <CT_BookView>();
            }
            CT_BookView bv = new CT_BookView();

            this.workbookViewField.Add(bv);
            return(bv);
        }
Exemple #4
0
        public static CT_BookViews Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_BookViews ctObj = new CT_BookViews();

            ctObj.workbookView = new List <CT_BookView>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "workbookView")
                {
                    ctObj.workbookView.Add(CT_BookView.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Exemple #5
0
 public CT_BookView AddNewWorkbookView()
 {
     if (this.workbookViewField == null)
         this.workbookViewField = new List<CT_BookView>();
     CT_BookView bv = new CT_BookView();
     this.workbookViewField.Add(bv);
     return bv;
 }
Exemple #6
0
 public CT_BookView AddNewWorkbookView()
 {
     CT_BookView bv = new CT_BookView();
     this.workbookViewField.Add(bv);
     return bv;
 }