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); }
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); }
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); }
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; }
public IName CreateName() { CT_DefinedName ctName = new CT_DefinedName(); ctName.name = (""); XSSFName name = new XSSFName(ctName, this); namedRanges.Add(name); return name; }
/** * 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; }
public CT_DefinedName AddNewDefinedName() { CT_DefinedName dn = new CT_DefinedName(); this.definedNameField.Add(dn); return dn; }
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; }