summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-11-08 08:10:36 +0900
committerRandy Morgan <[email protected]>2012-11-08 08:10:36 +0900
commitd18170cd86810a6210905b7ab8ed104b6103d877 (patch)
tree7ffabea376a31095025241ef818131be87943f77 /examples
parent887734c808438f30f419c5c26598e2f42ee01242 (diff)
downloadcaxlsx-d18170cd86810a6210905b7ab8ed104b6103d877.tar.gz
caxlsx-d18170cd86810a6210905b7ab8ed104b6103d877.zip
fixed cell text run validation for u and family
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/example.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/example.rb b/examples/example.rb
index d85ba27f..54d467f3 100755
--- a/examples/example.rb
+++ b/examples/example.rb
@@ -88,7 +88,14 @@ if examples.include? :cell_style_override
sheet.add_row ['col 1', 'col 2', 'col 3', 'col 4'], :sz => 16
sheet.add_row [1, 2, 3, "=SUM(A2:C2)"]
-
+ sheet.add_row %w(u shadow sz b i strike outline)
+ sheet.rows.last.cells[0].u = :double
+ sheet.rows.last.cells[1].shadow = true
+ sheet.rows.last.cells[2].sz = 20
+ sheet.rows.last.cells[3].b = true
+ sheet.rows.last.cells[4].i = true
+ sheet.rows.last.cells[5].strike = true
+ sheet.rows.last.cells[6].outline = 1
# You can also apply cell style overrides to a range of cells
sheet["A1:D1"].each { |c| c.color = "FF0000" }
sheet['A1:D2'].each { |c| c.style = Axlsx::STYLE_THIN_BORDER }