using System; using System.Collections.Generic; using System.Text; namespace Biff8Excel.Excel { public class ColInfo { ushort m_styleIdx; ushort m_from; ushort m_to; Biff8Excel.Records.ColInfo m_colInfo; public ColInfo() { m_colInfo = new Biff8Excel.Records.ColInfo(); } internal ushort FromColumn { get { return m_from; } } internal void SetColumnStyle(ushort vFrom, ushort vTo, ushort vWidth, ushort iStyleIndex) { m_from = vFrom; m_to = vTo; m_styleIdx = iStyleIndex; m_colInfo.FirstColumn = (ushort)(vFrom - 1); m_colInfo.LastColumn = (ushort)(vTo - 1); m_colInfo.Width = vWidth; m_colInfo.CellStyle = iStyleIndex; } internal ushort StyleIndex { get { return m_styleIdx; } } internal ushort ToColumn { get { return m_to; } } internal byte[] WriteRecord() { return m_colInfo.GetByte(); } } }