OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
Loading...
Searching...
No Matches
OpenXLSX::XLShapeStyle Class Reference

#include <XLDrawing.hpp>

Public Member Functions

 XLShapeStyle ()
 XLShapeStyle (const std::string &styleAttribute)
 Constructor. Init XLShapeStyle properties from styleAttribute.
 XLShapeStyle (const XMLAttribute &styleAttribute)
 Constructor. Init XLShapeStyle properties from styleAttribute and link to the attribute so that setter functions directly modify it.
std::string position () const
 Style Attribute Accessors.
uint16_t marginLeft () const
uint16_t marginTop () const
uint16_t width () const
uint16_t height () const
std::string msoWrapStyle () const
std::string vTextAnchor () const
bool hidden () const
bool visible () const
std::string raw () const
bool setPosition (std::string_view newPosition)
 Style Attribute Mutators.
bool setMarginLeft (uint16_t newMarginLeft)
bool setMarginTop (uint16_t newMarginTop)
bool setWidth (uint16_t newWidth)
bool setHeight (uint16_t newHeight)
bool setMsoWrapStyle (std::string_view newMsoWrapStyle)
bool setVTextAnchor (std::string_view newVTextAnchor)
bool hide ()
bool show ()
bool setRaw (std::string_view newStyle)

Constructor & Destructor Documentation

◆ XLShapeStyle() [1/3]

XLShapeStyle::XLShapeStyle ( )

◆ XLShapeStyle() [2/3]

XLShapeStyle::XLShapeStyle ( const std::string & styleAttribute)
explicit

Constructor. Init XLShapeStyle properties from styleAttribute.

Parameters
styleAttributea string with the value of the style attribute of a v:shape element

◆ XLShapeStyle() [3/3]

XLShapeStyle::XLShapeStyle ( const XMLAttribute & styleAttribute)
explicit

Constructor. Init XLShapeStyle properties from styleAttribute and link to the attribute so that setter functions directly modify it.

Parameters
styleAttributean XMLAttribute constructed with the style attribute of a v:shape element

Member Function Documentation

◆ height()

uint16_t XLShapeStyle::height ( ) const

◆ hidden()

bool XLShapeStyle::hidden ( ) const

◆ hide()

bool XLShapeStyle::hide ( )

◆ marginLeft()

uint16_t XLShapeStyle::marginLeft ( ) const

◆ marginTop()

uint16_t XLShapeStyle::marginTop ( ) const

◆ msoWrapStyle()

std::string XLShapeStyle::msoWrapStyle ( ) const

◆ position()

std::string XLShapeStyle::position ( ) const

Style Attribute Accessors.

◆ raw()

std::string OpenXLSX::XLShapeStyle::raw ( ) const
inline

◆ setHeight()

bool XLShapeStyle::setHeight ( uint16_t newHeight)

◆ setMarginLeft()

bool XLShapeStyle::setMarginLeft ( uint16_t newMarginLeft)

◆ setMarginTop()

bool XLShapeStyle::setMarginTop ( uint16_t newMarginTop)

◆ setMsoWrapStyle()

bool XLShapeStyle::setMsoWrapStyle ( std::string_view newMsoWrapStyle)

◆ setPosition()

bool XLShapeStyle::setPosition ( std::string_view newPosition)

Style Attribute Mutators.

◆ setRaw()

bool OpenXLSX::XLShapeStyle::setRaw ( std::string_view newStyle)
inline

◆ setVTextAnchor()

bool XLShapeStyle::setVTextAnchor ( std::string_view newVTextAnchor)

◆ setWidth()

bool XLShapeStyle::setWidth ( uint16_t newWidth)

◆ show()

bool XLShapeStyle::show ( )

◆ visible()

bool XLShapeStyle::visible ( ) const

◆ vTextAnchor()

std::string XLShapeStyle::vTextAnchor ( ) const

◆ width()

uint16_t XLShapeStyle::width ( ) const

The documentation for this class was generated from the following files:
  • /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLDrawing.hpp
  • /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/sources/XLDrawing.cpp