Table of Contents

Class XlsxPictureAnchor

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

Where a picture is: how it is anchored, its corners on the sheet and its place in EMU from the sheet's top-left corner.

public sealed class XlsxPictureAnchor
Inheritance
XlsxPictureAnchor
Inherited Members

Remarks

The corners of a one-cell or absolute anchor, and the place of a two-cell one, are worked out from the sheet's column widths and row heights as Excel's grid has them (a column of width w is Truncate(((256 * w + Truncate(128 / 7)) / 256) * 7) pixels, a row its height by four thirds, a pixel 9525 EMU), so they are Excel's when the sheet's default font is Calibri or Aptos Narrow 11.

Properties

From

Gets the top-left corner (Excel's TopLeftCell, with the offsets into it).

Kind

Gets how the drawing anchors the picture.

Left

Gets the left edge, from the sheet's.

To

Gets the bottom-right corner (Excel's BottomRightCell, with the offsets into it).

Top

Gets the top edge, from the sheet's.

Methods

ToString()

Returns the kind and the corners, such as TwoCell B2 +0 +0 to C4 +0 +76264.