Class: DimensionsRecord

Inherits:
BiffRecord show all
Defined in:
lib/surpass/biff_record.rb

Overview

Record DIMENSIONS, BIFF8:

Offset Size Contents 0 4 Index to first used row 4 4 Index to last used row, increased by 1 8 2 Index to first used column 10 2 Index to last used column, increased by 1 12 2 Not used

Constant Summary collapse

RECORD_ID =
0x0200

Constants inherited from BiffRecord

BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID

Instance Attribute Summary

Attributes inherited from BiffRecord

#record_data

Instance Method Summary collapse

Methods inherited from BiffRecord

#record_header, #to_biff

Constructor Details

#initialize(first_used_row, last_used_row, first_used_col, last_used_col) ⇒ DimensionsRecord

Returns a new instance of DimensionsRecord.



1081
1082
1083
# File 'lib/surpass/biff_record.rb', line 1081

def initialize(first_used_row, last_used_row, first_used_col, last_used_col)
  @record_data = [first_used_row, last_used_row + 1, first_used_col, last_used_col + 1, 0x00].pack('V2v3')
end