11#ifndef OPENXLSX_XLCOLUMN_HPP
12#define OPENXLSX_XLCOLUMN_HPP
16# pragma warning(disable : 4251)
17# pragma warning(disable : 4275)
24#include "OpenXLSX-Exports.hpp"
133 XMLAttribute getOrCreateAttribute(
const char* attrName);
bool isCollapsed() const
Is the column collapsed?
Definition XLColumn.cpp:87
uint8_t outlineLevel() const
Get the outline level of the column.
Definition XLColumn.cpp:66
XLColumn(XMLNode columnNode)
Constructor.
Definition XLColumn.cpp:25
void setCollapsed(bool state)
Set the column to be collapsed or expanded.
Definition XLColumn.cpp:92
float width() const
Get the width of the column.
Definition XLColumn.cpp:35
void setWidth(float width)
Set the width of the column.
Definition XLColumn.cpp:40
void setProperties(const XLColumnProperties &props)
Set all column properties from a value-semantic POD struct in a single pass.
Definition XLColumn.cpp:126
XMLNode columnNode() const
Get the XMLNode object for the column.
Definition XLColumn.cpp:104
XLStyleIndex format() const
Get the array index of xl/styles.xml:<styleSheet>:<cellXfs> for the style assigned to the column....
Definition XLColumn.cpp:109
bool setFormat(XLStyleIndex cellFormatIndex)
Set the column style as a reference to the array index of xl/styles.xml:<styleSheet>:<cellXfs>.
Definition XLColumn.cpp:115
XLColumnProperties properties() const
Get the column properties as a value-semantic POD struct.
Definition XLColumn.cpp:121
bool isHidden() const
Is the column hidden?
Definition XLColumn.cpp:49
void autoFit()
Auto fit the column width based on the content of its cells.
Definition XLColumn.cpp:131
void setOutlineLevel(uint8_t level)
Set the outline level of the column.
Definition XLColumn.cpp:74
void setHidden(bool state)
Set the column to be shown or hidden.
Definition XLColumn.cpp:54
Definition XLXmlParser.hpp:283
Definition IXLCellProvider.hpp:24
OpenXLSX_xml_node XMLNode
Definition XLXmlParser.hpp:64
size_t XLStyleIndex
Definition XLStyles_Common.hpp:36
Plain POD properties describing an OOXML Column (<col> element).
Definition XLXmlSchema.hpp:191