コード例 #1
0
ファイル: FieldsTables.cs プロジェクト: ctddjyds/npoi
        private PlexOfCps ReadPLCF(byte[] tableStream, FileInformationBlock fib,
                FieldsDocumentPart documentPart)
        {
            int start = fib.GetFieldsPlcfOffset(documentPart);
            int length = fib.GetFieldsPlcfLength(documentPart);

            if (start <= 0 || length <= 0)
                return null;

            return new PlexOfCps(tableStream, start, length, FLD_SIZE);
        }
コード例 #2
0
        private PlexOfCps ReadPLCF(byte[] tableStream, FileInformationBlock fib,
                                   FieldsDocumentPart documentPart)
        {
            int start  = fib.GetFieldsPlcfOffset(documentPart);
            int length = fib.GetFieldsPlcfLength(documentPart);

            if (start <= 0 || length <= 0)
            {
                return(null);
            }

            return(new PlexOfCps(tableStream, start, length, FLD_SIZE));
        }