OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLImageOptions Struct Reference

Options for inserting an image into a worksheet. More...

#include <XLImageOptions.hpp>

Data Fields

double scaleX {1.0}
 
double scaleY {1.0}
 
int32_t offsetX {0}
 
int32_t offsetY {0}
 
XLImagePositioning positioning {XLImagePositioning::OneCell}
 
std::string bottomRightCell
 
bool printWithSheet {true}
 
bool locked {false}
 

Detailed Description

Options for inserting an image into a worksheet.

Field Documentation

◆ bottomRightCell

std::string OpenXLSX::XLImageOptions::bottomRightCell
Initial value:
{
""}

Bottom-right cell reference (e.g., "D10"). Used if positioning is TwoCell. If empty, calculated automatically.

◆ locked

bool OpenXLSX::XLImageOptions::locked {false}

Whether the image is locked (requires sheet protection to be active).

◆ offsetX

int32_t OpenXLSX::XLImageOptions::offsetX {0}

Horizontal offset in pixels from the anchor cell's left edge.

◆ offsetY

int32_t OpenXLSX::XLImageOptions::offsetY {0}

Vertical offset in pixels from the anchor cell's top edge.

◆ positioning

XLImagePositioning OpenXLSX::XLImageOptions::positioning {XLImagePositioning::OneCell}

How the image anchors to cells.

◆ printWithSheet

bool OpenXLSX::XLImageOptions::printWithSheet {true}

Whether the image should be printed with the worksheet.

◆ scaleX

double OpenXLSX::XLImageOptions::scaleX {1.0}

Horizontal scaling factor. 1.0 = 100%.

◆ scaleY

double OpenXLSX::XLImageOptions::scaleY {1.0}

Vertical scaling factor. 1.0 = 100%.


The documentation for this struct was generated from the following file: