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

            ctObj.name         = XmlHelper.ReadString(node.Attributes["name"]);
            ctObj.comment      = XmlHelper.ReadString(node.Attributes["comment"]);
            ctObj.customMenu   = XmlHelper.ReadString(node.Attributes["customMenu"]);
            ctObj.description  = XmlHelper.ReadString(node.Attributes["description"]);
            ctObj.help         = XmlHelper.ReadString(node.Attributes["help"]);
            ctObj.statusBar    = XmlHelper.ReadString(node.Attributes["statusBar"]);
            ctObj.localSheetId = XmlHelper.ReadUInt(node.Attributes["localSheetId"]);
            ctObj.localSheetIdFieldSpecified = node.Attributes["localSheetId"] != null;
            ctObj.hidden            = XmlHelper.ReadBool(node.Attributes["hidden"]);
            ctObj.function          = XmlHelper.ReadBool(node.Attributes["function"]);
            ctObj.vbProcedure       = XmlHelper.ReadBool(node.Attributes["vbProcedure"]);
            ctObj.xlm               = XmlHelper.ReadBool(node.Attributes["xlm"]);
            ctObj.functionGroupId   = XmlHelper.ReadUInt(node.Attributes["functionGroupId"]);
            ctObj.shortcutKey       = XmlHelper.ReadString(node.Attributes["shortcutKey"]);
            ctObj.publishToServer   = XmlHelper.ReadBool(node.Attributes["publishToServer"]);
            ctObj.workbookParameter = XmlHelper.ReadBool(node.Attributes["workbookParameter"]);
            ctObj.Value             = node.InnerText;
            return(ctObj);
        }
예제 #2
0
        public CT_DefinedName AddNewDefinedName()
        {
            if (this.definedNameField == null)
            {
                this.definedNameField = new List <CT_DefinedName>();
            }
            CT_DefinedName dn = new CT_DefinedName();

            this.definedNameField.Add(dn);
            return(dn);
        }
예제 #3
0
        public static CT_DefinedNames Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_DefinedNames ctObj = new CT_DefinedNames();

            ctObj.definedName = new List <CT_DefinedName>();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "definedName")
                {
                    ctObj.definedName.Add(CT_DefinedName.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
예제 #4
0
 public static CT_DefinedName Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_DefinedName ctObj = new CT_DefinedName();
     ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
     ctObj.comment = XmlHelper.ReadString(node.Attributes["comment"]);
     ctObj.customMenu = XmlHelper.ReadString(node.Attributes["customMenu"]);
     ctObj.description = XmlHelper.ReadString(node.Attributes["description"]);
     ctObj.help = XmlHelper.ReadString(node.Attributes["help"]);
     ctObj.statusBar = XmlHelper.ReadString(node.Attributes["statusBar"]);
     ctObj.localSheetId = XmlHelper.ReadUInt(node.Attributes["localSheetId"]);
     ctObj.localSheetIdFieldSpecified = node.Attributes["localSheetId"] != null;
     ctObj.hidden = XmlHelper.ReadBool(node.Attributes["hidden"]);
     ctObj.function = XmlHelper.ReadBool(node.Attributes["function"]);
     ctObj.vbProcedure = XmlHelper.ReadBool(node.Attributes["vbProcedure"]);
     ctObj.xlm = XmlHelper.ReadBool(node.Attributes["xlm"]);
     ctObj.functionGroupId = XmlHelper.ReadUInt(node.Attributes["functionGroupId"]);
     ctObj.shortcutKey = XmlHelper.ReadString(node.Attributes["shortcutKey"]);
     ctObj.publishToServer = XmlHelper.ReadBool(node.Attributes["publishToServer"]);
     ctObj.workbookParameter = XmlHelper.ReadBool(node.Attributes["workbookParameter"]);
     ctObj.Value = node.InnerText;
     return ctObj;
 }
예제 #5
0
 public IName CreateName()
 {
     CT_DefinedName ctName = new CT_DefinedName();
     ctName.name = ("");
     XSSFName name = new XSSFName(ctName, this);
     namedRanges.Add(name);
     return name;
 }
예제 #6
0
파일: XSSFName.cs 프로젝트: xoposhiy/npoi
 /**
  * Creates an XSSFName object - called internally by XSSFWorkbook.
  *
  * @param name - the xml bean that holds data represenring this defined name.
  * @param workbook - the workbook object associated with the name
  * @see NPOI.XSSF.usermodel.XSSFWorkbook#CreateName()
  */
 public XSSFName(CT_DefinedName name, XSSFWorkbook workbook)
 {
     _workbook = workbook;
     _ctName = name;
 }
예제 #7
0
파일: Workbook.cs 프로젝트: ctddjyds/npoi
 public CT_DefinedName AddNewDefinedName()
 {
     CT_DefinedName dn = new CT_DefinedName();
     this.definedNameField.Add(dn);
     return dn;
 }
예제 #8
0
 public CT_DefinedName AddNewDefinedName()
 {
     if (this.definedNameField == null)
         this.definedNameField = new List<CT_DefinedName>();
     CT_DefinedName dn = new CT_DefinedName();
     this.definedNameField.Add(dn);
     return dn;
 }