Open antoinereyt opened 3 years ago
# Text rotation. sheet7 = %Sheet{name: "Text rotation"} |> Sheet.set_cell("A1", "Hello - angle_ccw", text_rotation: :angle_ccw) |> Sheet.set_cell("B1", "Hello - angle_cw", text_rotation: :angle_cw) |> Sheet.set_cell("C1", "Vertical - vertical", text_rotation: :vertical) |> Sheet.set_cell("D1", "Hello - rotate_up", text_rotation: :rotate_up) |> Sheet.set_cell("E1", "Hello - rotate_down", text_rotation: :rotate_down) |> Sheet.set_cell("F1", "Hello - 20", text_rotation: 20)
This adds the textRotation xml attribute.
textRotation
<xf numFmtId="0" fontId="0" fillId="2" borderId="1" xfId="0" applyFill="1" applyBorder="1" applyAlignment="1"> <alignment vertical="center" textRotation="180"/> </xf>
@xou Please can this PR be pulled into master?
Adding support for text rotation
Usage
XML
This adds the
textRotation
xml attribute.