def store_areaformat(rgbFore, rgbBack, pattern, grbit, indexFore, indexBack)  # :nodoc:
    record    = 0x100A     # Record identifier.
    length    = 0x0010     # Number of bytes to follow.
    # rgbFore              # Foreground RGB colour.
    # rgbBack              # Background RGB colour.
    # pattern              # Pattern.
    # grbit                # Option flags.
    # indexFore            # Index to Foreground colour.
    # indexBack            # Index to Background colour.

    header = [record, length].pack('vv')
    data  = [rgbFore].pack('V')
    data += [rgbBack].pack('V')
    data += [pattern].pack('v')
    data += [grbit].pack('v')
    data += [indexFore].pack('v')
    data += [indexBack].pack('v')

    append(header, data)
  end
def store_areaformat(rgbFore, rgbBack, pattern, grbit, indexFore, indexBack)  # :nodoc:
    record    = 0x100A     # Record identifier.
    length    = 0x0010     # Number of bytes to follow.
    # rgbFore              # Foreground RGB colour.
    # rgbBack              # Background RGB colour.
    # pattern              # Pattern.
    # grbit                # Option flags.
    # indexFore            # Index to Foreground colour.
    # indexBack            # Index to Background colour.

    header = [record, length].pack('vv')
    data  = [rgbFore].pack('V')
    data += [rgbBack].pack('V')
    data += [pattern].pack('v')
    data += [grbit].pack('v')
    data += [indexFore].pack('v')
    data += [indexBack].pack('v')

    append(header, data)
  end
Write the AREAFORMAT chart BIFF record. Contains the patterns and colours
 of a chart area.