Sha256: c8de34e1e0dbbe2881aec082643dbaaf19c1c1ab2e67d99c824e7b74358aaf82

Contents?: true

Size: 595 Bytes

Versions: 38

Compression:

Stored size: 595 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

require 'rubygems'
require 'write_xlsx'

workbook  = WriteXLSX.new('diag_border.xlsx')
worksheet = workbook.add_worksheet()


format1 = workbook.add_format(:diag_type => 1)
format2 = workbook.add_format(:diag_type => 2)
format3 = workbook.add_format(:diag_type => 3)

format4 = workbook.add_format(
    :diag_type   => 3,
    :diag_border => 7,
    :diag_color  => 'red'
)

worksheet.write('B3',  'Text', format1)
worksheet.write('B6',  'Text', format2)
worksheet.write('B9',  'Text', format3)
worksheet.write('B12', 'Text', format4)

workbook.close

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
write_xlsx-0.81.0 examples/diag_border.rb
write_xlsx-0.80.0 examples/diag_border.rb
write_xlsx-0.79.0 examples/diag_border.rb
write_xlsx-0.78.0 examples/diag_border.rb
write_xlsx-0.77.2 examples/diag_border.rb
write_xlsx-0.77.1 examples/diag_border.rb
write_xlsx-0.77.0 examples/diag_border.rb
write_xlsx-0.76.3 examples/diag_border.rb
write_xlsx-0.76.2 examples/diag_border.rb
write_xlsx-0.76.1 examples/diag_border.rb
write_xlsx-0.76.0 examples/diag_border.rb
write_xlsx-0.75.0 examples/diag_border.rb
write_xlsx-0.74.0 examples/diag_border.rb
write_xlsx-0.73.0 examples/diag_border.rb
write_xlsx-0.72.3.beta1 examples/diag_border.rb
write_xlsx-0.72.2 examples/diag_border.rb
write_xlsx-0.72.1 examples/diag_border.rb
write_xlsx-0.72.0 examples/diag_border.rb
write_xlsx-0.71.0 examples/diag_border.rb
write_xlsx-0.70.0 examples/diag_border.rb