diff options
| author | Randy Morgan <[email protected]> | 2012-12-19 23:38:24 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2012-12-19 23:38:24 +0900 |
| commit | dad342a7bae74a2b628cb9d3ebf440c73e163ad9 (patch) | |
| tree | bc49fa4f03f6524a8d4fb4852b52ff50c640a5e4 /lib | |
| parent | 054de56d12e203a5f0696f98ac9fad3159e7abc1 (diff) | |
| download | caxlsx-dad342a7bae74a2b628cb9d3ebf440c73e163ad9.tar.gz caxlsx-dad342a7bae74a2b628cb9d3ebf440c73e163ad9.zip | |
changed outline_row to outline_level_row to minimize confusion with borders
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/workbook/worksheet/worksheet.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/axlsx/workbook/worksheet/worksheet.rb b/lib/axlsx/workbook/worksheet/worksheet.rb index b6dc7c38..26385573 100644 --- a/lib/axlsx/workbook/worksheet/worksheet.rb +++ b/lib/axlsx/workbook/worksheet/worksheet.rb @@ -608,11 +608,23 @@ module Axlsx @styles ||= self.workbook.styles end - def outline_rows(start_index, end_index, level = 1, collapsed = true) + # shortcut level to specify the outline level for a series of rows + # Oulining is what lets you add collapse and expand to a data set. + # @param [Integer] start_index The zero based index of the first row of outlining. + # @param [Integer] end_index The zero based index of the last row to be outlined + # @param [integer] level The level of outline to apply + # @param [Integer] collapsed The initial collapsed state of the outline group + def outline_level_rows(start_index, end_index, level = 1, collapsed = true) outline rows, (start_index..end_index), level, collapsed end - def outline_columns(start_index, end_index, level = 1, collapsed = true) + # shortcut level to specify the outline level for a series of columns + # Oulining is what lets you add collapse and expand to a data set. + # @param [Integer] start_index The zero based index of the first column of outlining. + # @param [Integer] end_index The zero based index of the last column to be outlined + # @param [integer] level The level of outline to apply + # @param [Integer] collapsed The initial collapsed state of the outline group + def outline_level_columns(start_index, end_index, level = 1, collapsed = true) outline column_info, (start_index..end_index), level, collapsed end |
