public Name(NameRecord nameRecord, int index) { _nameRecord = nameRecord; _index = index; }
/// <summary> /// Creates new HSSFName - called by HSSFWorkbook to Create a sheet from /// scratch. /// </summary> /// <param name="book">lowlevel Workbook object associated with the sheet.</param> /// <param name="name">the Name Record</param> /// <param name="comment"></param> internal HSSFName(HSSFWorkbook book, NameRecord name, NameCommentRecord comment) { this.book = book; this._definedNameRec = name; _commentRec = comment; }
private bool IsRowColHeaderRecord(NameRecord r) { return r.OptionFlag == 0x20 && ("" + ((char)7)).Equals(r.NameText); }
/* package */ internal HSSFName(HSSFWorkbook book, NameRecord name):this(book, name, null) { }
public void AddName(NameRecord name) { _definedNames.Add(name); // TODO - this Is messy // Not the most efficient way but the other way was causing too many bugs int idx = FindFirstRecordLocBySid(ExternSheetRecord.sid); if (idx == -1) idx = FindFirstRecordLocBySid(SupBookRecord.sid); if (idx == -1) idx = FindFirstRecordLocBySid(CountryRecord.sid); int countNames = _definedNames.Count; _workbookRecordList.Add(idx + countNames, name); }