Table of Contents

Class XlsxPicture

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

One picture of a sheet (Phase 204). The object is live: it reads the picture as the workbook has it now, and its setters change it.

public sealed class XlsxPicture
Inheritance
XlsxPicture
Inherited Members

Properties

AlternativeText

Gets or sets the alternative text (the drawing's descr); null for none.

Anchor

Gets where the picture is: its anchor's kind, its corners and its place on the sheet.

ContentType

Gets the image's content type, such as image/png; empty for a linked picture, whose image is outside the workbook.

Height

Gets the height the picture is drawn at.

IsLinked

Gets whether the picture's image is not held in the workbook: a link to a file outside it (never fetched), or no image named at all.

Name

Gets or sets the picture's name (Excel's Name: the drawing's cNvPr name).

Placement

Gets or sets how the picture follows the cells under it. Setting it keeps the picture where it is; a one-cell or absolute anchor becomes the two-cell anchor Excel writes.

Title

Gets or sets the title (the drawing's title); null for none.

Width

Gets the width the picture is drawn at.

Methods

Move(string, Emu, Emu)

Moves the picture's top-left corner into a cell, keeping its size.

OpenData()

Opens the image's bytes, as the workbook holds them.

Remove()

Takes the picture out of the sheet, and its image out of the workbook when nothing else shows it.

Resize(Emu, Emu)

Resizes the picture, keeping its top-left corner where it is.

ToString()

Returns the name and the cells under it, such as Picture 1 B2:C4.