zhao
2021-07-02 081df17b8cc4a6e7e4f4e1e1887f24810e3ec2f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
 
namespace HH.WMS.Utils.ExcelLibrary.BinaryFileFormat
{
    public partial class SubRecord
    {
        public static SubRecord Read(Stream stream)
        {
            SubRecord record = SubRecord.ReadBase(stream);
            switch (record.Type)
            {
                case SubRecordType.CommonObjectData:
                    return new CommonObjectData(record);
                case SubRecordType.End:
                    return new End(record);
                case SubRecordType.GroupMarker:
                    return new GroupMarker(record);
                case SubRecordType.ClipboardFormat:
                    return new ClipboardFormat(record);
                case SubRecordType.PictureOption:
                    return new PictureOption(record);
                default:
                    return record;
            }
        }
 
    }
}