コード例 #1
0
        public ColumnWidthRecord(RecordInputStream in1)
        {
            //this.sid = in1.Sid;
            //this.isBiff2 = isBiff2;

            FirstColumnIndex = in1.ReadUByte();
            LastColumnIndex  = in1.ReadUByte();
            ColumnWidth      = in1.ReadUShort();

            if (in1.Remaining > 0)
            {
                logger.Log(POILogger.INFO,
                           "ColumnWidthRecord data remains: " + in1.Remaining +
                           " : " + HexDump.ToHex(in1.ReadRemainder())
                           );
            }
        }
コード例 #2
0
ファイル: SeriesTextRecord.cs プロジェクト: xoposhiy/npoi
        /**
         * Constructs a SeriesText record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public SeriesTextRecord(RecordInputStream in1)
        {

            field_1_id = in1.ReadShort();
            int field_2_textLength = (byte)in1.ReadByte();
            is16bit = (in1.ReadUByte() & 0x01) != 0;
            if (is16bit)
            {
                field_4_text = in1.ReadUnicodeLEString(field_2_textLength);
            }
            else
            {
                field_4_text = in1.ReadCompressedUnicode(field_2_textLength);
            }
        }
コード例 #3
0
ファイル: SeriesTextRecord.cs プロジェクト: purehzj/npoi-1
        /**
         * Constructs a SeriesText record and Sets its fields appropriately.
         *
         * @param in the RecordInputstream to Read the record from
         */

        public SeriesTextRecord(RecordInputStream in1)
        {
            field_1_id = in1.ReadShort();
            int field_2_textLength = (byte)in1.ReadByte();

            is16bit = (in1.ReadUByte() & 0x01) != 0;
            if (is16bit)
            {
                field_4_text = in1.ReadUnicodeLEString(field_2_textLength);
            }
            else
            {
                field_4_text = in1.ReadCompressedUnicode(field_2_textLength);
            }
        }
コード例 #4
0
        public CellRangeAddress8Bit(RecordInputStream in1)
            : base(ReadUShortAndCheck(in1), in1.ReadUShort(), in1.ReadUByte(), in1.ReadUByte())
        {

        }
コード例 #5
0
 public int ReadUByte()
 {
     return(_in.ReadUByte());
 }