Sha256: 9b26d5d42dbb7c94fe9dd3453ad8f3161663d607d6d78b23ee117cea4b14de9a

Contents?: true

Size: 576 Bytes

Versions: 33

Compression:

Stored size: 576 Bytes

Contents

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

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

33 entries across 33 versions & 1 rubygems

Version Path
write_xlsx-1.09.4 examples/diag_border.rb
write_xlsx-1.09.3 examples/diag_border.rb
write_xlsx-1.09.2 examples/diag_border.rb
write_xlsx-1.09.1 examples/diag_border.rb
write_xlsx-1.09.0 examples/diag_border.rb
write_xlsx-1.08.2 examples/diag_border.rb
write_xlsx-1.08.1 examples/diag_border.rb
write_xlsx-1.08.0 examples/diag_border.rb
write_xlsx-1.07.0 examples/diag_border.rb
write_xlsx-1.04.0 examples/diag_border.rb
write_xlsx-1.02.0 examples/diag_border.rb
write_xlsx-1.01.0 examples/diag_border.rb
write_xlsx-1.00.0 examples/diag_border.rb
write_xlsx-0.99.0 examples/diag_border.rb
write_xlsx-0.97.0 examples/diag_border.rb
write_xlsx-0.90.0 examples/diag_border.rb
write_xlsx-0.89.0 examples/diag_border.rb
write_xlsx-0.88.0 examples/diag_border.rb
write_xlsx-0.87.0 examples/diag_border.rb
write_xlsx-0.86.0 examples/diag_border.rb