Class: DefColWidthRecord

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

Overview

This record specifies the default column width for columns that do not have a specific width set using the record COLINFO or COLWIDTH. This record has no effect, if a STANDARDWIDTH record is present in the file.

Record DEFCOLWIDTH, BIFF2-BIFF8:

Offset Size Contents 0 2 Column width in characters, using the width of the zero

character from default font (first FONT record in the file)

Constant Summary collapse

RECORD_ID =
0x0055

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(def_width) ⇒ DefColWidthRecord

Returns a new instance of DefColWidthRecord.



1687
1688
1689
# File 'lib/surpass/biff_record.rb', line 1687

def initialize(def_width)
  @record_data = [def_width].pack('v')
end