/// <summary> /// Adds to SST if required. /// </summary> private void AddToSSTIfRequired() { if (_book != null) { int index = _book.AddSSTString(_string); _record.SSTIndex = (index); //The act of Adding the string to the SST record may have meant that //a extsing string was returned for the index, so update our local version _string = _book.GetSSTString(index); } }
/// <summary> /// Initializes a new instance of the <see cref="HSSFRichTextString"/> class. /// </summary> /// <param name="book">The workbook.</param> /// <param name="record">The record.</param> public HSSFRichTextString(InternalWorkbook book, LabelSSTRecord record) { SetWorkbookReferences(book, record); this._string = book.GetSSTString(record.SSTIndex); }