From 4d16bfc43780e5d3f7368625700b583e3e98217a Mon Sep 17 00:00:00 2001
From: Randy Morgan Using Styles#add_style is the recommended way to manage cell alignment.
+Using Styles#add_style is the recommended way to manage cell alignment.
+ CellAlignment stores information about the cell alignment of a style Xf
-Object.
+CellAlignment stores information about the cell alignment of a style Xf
+Object.
+
The horizontal alignment of the cell.
++The horizontal alignment of the cell. +
The amount of indent.
++The amount of indent. +
Indicate if the last line should be justified.
++Indicate if the last line should be justified. +
The reading order of the text 0 Context Dependent 1 Left-to-Right 2 -Right-to-Left.
++The reading order of the text 0 Context Dependent 1 Left-to-Right 2 +Right-to-Left. +
The amount of relativeIndent.
++The amount of relativeIndent. +
Indicate if the text should be shrunk to the fit in the cell.
++Indicate if the text should be shrunk to the fit in the cell. +
The textRotation of the cell.
++The textRotation of the cell. +
The vertical alignment of the cell.
++The vertical alignment of the cell. +
Indicate if the text of the cell should wrap.
++Indicate if the text of the cell should wrap. +
Create a new cell_alignment object.
++Create a new cell_alignment object. +
Serializes the cell alignment.
++Serializes the cell alignment. +
Create a new cell_alignment object
++Create a new cell_alignment object +
a customizable set of options
++a customizable set of options +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 72 -def initialize(={}) - .each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" - end -end+def initialize(={}) + .each do |o| + self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + end +end +
The horizontal cell alignement style must be one of
- -:general -:left -:center -:right -:fill -:justify -:centerContinuous -:distributed+
+The horizontal cell alignement style must be one of +
++ :general + :left + :center + :right + :fill + :justify + :centerContinuous + :distributed +
The horizontal alignment of the cell.
++The horizontal alignment of the cell. +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 18 -def horizontal - @horizontal -end+def horizontal + @horizontal +end +
The amount of indent
++The amount of indent +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 41 -def indent - @indent -end+def indent + @indent +end +
Indicate if the last line should be justified.
++Indicate if the last line should be justified. +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 49 -def justifyLastLine - @justifyLastLine -end+def justifyLastLine + @justifyLastLine +end +
The reading order of the text 0 Context Dependent 1 Left-to-Right 2 -Right-to-Left
++The reading order of the text 0 Context Dependent 1 Left-to-Right 2 +Right-to-Left +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 60 -def readingOrder - @readingOrder -end+def readingOrder + @readingOrder +end +
The amount of relativeIndent
++The amount of relativeIndent +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 45 -def relativeIndent - @relativeIndent -end+def relativeIndent + @relativeIndent +end +
Indicate if the text should be shrunk to the fit in the cell.
++Indicate if the text should be shrunk to the fit in the cell. +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 53 -def shrinkToFit - @shrinkToFit -end+def shrinkToFit + @shrinkToFit +end +
The textRotation of the cell.
++The textRotation of the cell. +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 33 -def textRotation - @textRotation -end+def textRotation + @textRotation +end +
The vertical cell allingment style must be one of the following:
- -:top -:center -:bottom -:justify -:distributed+
+The vertical cell allingment style must be one of the following: +
++ :top + :center + :bottom + :justify + :distributed +
The vertical alignment of the cell.
++The vertical alignment of the cell. +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 29 -def vertical - @vertical -end+def vertical + @vertical +end +
Indicate if the text of the cell should wrap
++Indicate if the text of the cell should wrap +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 37 -def wrapText - @wrapText -end+def wrapText + @wrapText +end +
Serializes the cell alignment
++Serializes the cell alignment +
The document builder instance this objects xml will be added to.
++The document builder instance this objects xml will be added to. +
# File 'lib/axlsx/stylesheet/cell_alignment.rb', line 100 -def to_xml(xml) - xml.alignment(self.instance_values) -end+def to_xml(xml) + xml.alignment(self.instance_values) +end +