public static MsoContainerRecord CreateContainer(BinaryReader reader, MsoType type) { switch (type) { case MsoType.DggContainer: return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTDGGCONTAINER"), reader, type)); case MsoType.BstoreContainer: return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTBSTORECONTAINER"), reader, type)); case MsoType.DgContainer: return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTDGCONTAINER"), reader, type)); case MsoType.SpgrContainer: return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTSPGRCONTAINER"), reader, type)); case MsoType.SpContainer: return(new MsoContainerRecord(XLSDescriptors.GetByName("MSOFBTSPCONTAINER"), reader, type)); } throw new ArgumentException("Unallowed mso type for recreation mso container."); }
private void InitializeDescriptorCode(string name) { this.InitializeDescriptorCode(XLSDescriptors.GetByName(name)); }
public void WriteRecords(AbsXLSRecords destination, string recordName) { int code = XLSDescriptors.GetByName(recordName).Code; this.WriteRecords(destination, code); }
public void CopyRecords(PreservedRecords source, string recordName) { int code = XLSDescriptors.GetByName(recordName).Code; this.CopyRecords(source, code); }