Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
        /// <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);
        }