using System; using System.Collections.Generic; using System.Text; namespace Biff8Excel.Excel { public class ExcelFormat : IDisposable { Biff8Excel.Records.Format m_format; string m_formatString = ""; ushort m_index; bool m_formatUpdated; internal ExcelFormat Clone() { ExcelFormat fmt = new ExcelFormat(); fmt.FormatString = m_formatString; fmt.index = m_index; return fmt; } internal byte[] WriteRecord() { return m_format.GetByte(); } public bool Match(ExcelFormat rhs) { if (m_formatString == rhs.FormatString) return true; else return false; } internal ushort index { set { m_index = value; m_format.Index = value ; } get { return m_index; } } public string FormatString { set { m_formatString = value; m_format.FormatString = value; m_formatUpdated = true; } get { return m_formatString; } } internal bool Formatupdated { get { return m_formatUpdated; } } public ExcelFormat() { m_format = new Biff8Excel.Records.Format(); } #region IDisposable ³ΙΤ± public void Dispose() { m_format = null; } #endregion } }