Пример #1
0
 public CT_PageSetup AddNewPageSetup()
 {
     this.pageSetupField = new CT_PageSetup();
     return this.pageSetupField;
 }
Пример #2
0
 public static CT_PageSetup Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_PageSetup ctObj = new CT_PageSetup();
     if (node.Attributes["paperSize"] != null)
         ctObj.paperSize = XmlHelper.ReadUInt(node.Attributes["paperSize"]);
     if (node.Attributes["firstPageNumber"] != null)
         ctObj.firstPageNumber = XmlHelper.ReadUInt(node.Attributes["firstPageNumber"]);
     if (node.Attributes["orientation"] != null)
         ctObj.orientation = (ST_PageSetupOrientation)Enum.Parse(typeof(ST_PageSetupOrientation), node.Attributes["orientation"].Value);
     if (node.Attributes["blackAndWhite"] != null)
         ctObj.blackAndWhite = XmlHelper.ReadBool(node.Attributes["blackAndWhite"]);
     if (node.Attributes["draft"] != null)
         ctObj.draft = XmlHelper.ReadBool(node.Attributes["draft"]);
     if (node.Attributes["useFirstPageNumber"] != null)
         ctObj.useFirstPageNumber = XmlHelper.ReadBool(node.Attributes["useFirstPageNumber"]);
     if (node.Attributes["horizontalDpi"] != null)
         ctObj.horizontalDpi = XmlHelper.ReadInt(node.Attributes["horizontalDpi"]);
     if (node.Attributes["verticalDpi"] != null)
         ctObj.verticalDpi = XmlHelper.ReadInt(node.Attributes["verticalDpi"]);
     if (node.Attributes["copies"] != null)
         ctObj.copies = XmlHelper.ReadUInt(node.Attributes["copies"]);
     return ctObj;
 }
Пример #3
0
 public CT_PrintSettings()
 {
     this.legacyDrawingHFField = new CT_RelId();
     this.pageSetupField = new CT_PageSetup();
     this.pageMarginsField = new CT_PageMargins();
     this.headerFooterField = new CT_HeaderFooter();
 }