#region License
// /*
// See license included in this library folder.
// */
#endregion
namespace Transformalize.Libs.ExcelDataReader.Core.BinaryFormat
{
/// <summary>
/// Represents a string stored in SST
/// </summary>
internal class XlsBiffLabelSSTCell : XlsBiffBlankCell
{
internal XlsBiffLabelSSTCell(byte[] bytes)
: this(bytes, 0)
{
}
internal XlsBiffLabelSSTCell(byte[] bytes, uint offset)
: base(bytes, offset)
{
}
/// <summary>
/// Index of string in Shared String Table
/// </summary>
public uint SSTIndex
{
get { return base.ReadUInt32(0x6); }
}
/// <summary>
/// Returns text using specified SST
/// </summary>
/// <param name="sst">Shared String Table record</param>
/// <returns></returns>
public string Text(XlsBiffSST sst)
{
return sst.GetString(SSTIndex);
}
}
}