| 
    xlnt - community edition
    
   | 
 
Alignment options that determine how text should be displayed within a cell. More...
#include <alignment.hpp>
Public Member Functions | |
| bool | shrink () const | 
| Returns true if shrink-to-fit has been enabled.  More... | |
| alignment & | shrink (bool shrink_to_fit) | 
| Sets whether the font size should be reduced until all of the text fits in a cell without wrapping.  More... | |
| bool | wrap () const | 
| Returns true if text-wrapping has been enabled.  More... | |
| alignment & | wrap (bool wrap_text) | 
| Sets whether text in a cell should continue to multiple lines if it doesn't fit in one line.  More... | |
| optional< int > | indent () const | 
| Returns the optional value of indentation width in number of spaces.  More... | |
| alignment & | indent (int indent_size) | 
| Sets the indent size in number of spaces from the side of the cell. This will only take effect when left or right horizontal alignment has also been set.  More... | |
| optional< int > | rotation () const | 
| Returns the optional value of rotation for text in the cell in degrees.  More... | |
| alignment & | rotation (int text_rotation) | 
| Sets the rotation for text in the cell in degrees.  More... | |
| optional< horizontal_alignment > | horizontal () const | 
| Returns the optional horizontal alignment.  More... | |
| alignment & | horizontal (horizontal_alignment horizontal) | 
| Sets the horizontal alignment.  More... | |
| optional< vertical_alignment > | vertical () const | 
| Returns the optional vertical alignment.  More... | |
| alignment & | vertical (vertical_alignment vertical) | 
| Sets the vertical alignment.  More... | |
| bool | operator== (const alignment &other) const | 
| Returns true if this alignment is equivalent to other.  More... | |
| bool | operator!= (const alignment &other) const | 
| Returns true if this alignment is not equivalent to other.  More... | |
Alignment options that determine how text should be displayed within a cell.
| optional<horizontal_alignment> xlnt::alignment::horizontal | ( | ) | const | 
Returns the optional horizontal alignment.
| alignment& xlnt::alignment::horizontal | ( | horizontal_alignment | horizontal | ) | 
Sets the horizontal alignment.
| optional<int> xlnt::alignment::indent | ( | ) | const | 
Returns the optional value of indentation width in number of spaces.
| alignment& xlnt::alignment::indent | ( | int | indent_size | ) | 
Sets the indent size in number of spaces from the side of the cell. This will only take effect when left or right horizontal alignment has also been set.
| bool xlnt::alignment::operator!= | ( | const alignment & | other | ) | const | 
Returns true if this alignment is not equivalent to other.
| bool xlnt::alignment::operator== | ( | const alignment & | other | ) | const | 
Returns true if this alignment is equivalent to other.
| optional<int> xlnt::alignment::rotation | ( | ) | const | 
Returns the optional value of rotation for text in the cell in degrees.
| alignment& xlnt::alignment::rotation | ( | int | text_rotation | ) | 
Sets the rotation for text in the cell in degrees.
| bool xlnt::alignment::shrink | ( | ) | const | 
Returns true if shrink-to-fit has been enabled.
| alignment& xlnt::alignment::shrink | ( | bool | shrink_to_fit | ) | 
Sets whether the font size should be reduced until all of the text fits in a cell without wrapping.
| optional<vertical_alignment> xlnt::alignment::vertical | ( | ) | const | 
Returns the optional vertical alignment.
| alignment& xlnt::alignment::vertical | ( | vertical_alignment | vertical | ) | 
Sets the vertical alignment.
| bool xlnt::alignment::wrap | ( | ) | const | 
Returns true if text-wrapping has been enabled.
| alignment& xlnt::alignment::wrap | ( | bool | wrap_text | ) | 
Sets whether text in a cell should continue to multiple lines if it doesn't fit in one line.
 1.8.13