📚
OpenXML-Office
v3.x (Discontinued)
v3.x (Discontinued)
  • Welcome
    • Getting Started
    • Introduction
    • Privacy Policy
    • License
  • Presentation
    • PowerPoint
    • Slide
    • Shape
    • Picture
    • Textbox
    • Table
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
      • Waterfall
  • Spreadsheet
    • Excel
    • Worksheet
    • Shape
    • Picture
    • Table
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
    • Style
    • Shared
  • Document
    • Word
    • Pages
    • Shape
    • Picture
    • Table
    • Chart
Powered by GitBook
On this page
  • Basic Code Sample
  • ExcelPictureSetting Options
  • AnchorPosition Options

Was this helpful?

  1. Spreadsheet

Picture

Details about adding and manipulating picture to a worksheet

Basic Code Sample

public void AddPicture()
	{
		Worksheet worksheet = excel.AddSheet("Data4");
		worksheet.AddPicture("./TestFiles/tom_and_jerry.jpg", new()
		{
			imageType = ImageType.JPEG,
			from = new()
			{
				column = 6,
				row = 6
			},
			to = new()
			{
				column = 8,
				row = 8
			}
		});
		Assert.IsTrue(true);
	}

ExcelPictureSetting Options

Property
Type
Details

hyperlinkProperties

Attach hyperlink to the image

imageType

ImageType

Image extension type

anchorEditType

AnchorEditType

Mode of picture starting point

from

Top Left coordinate

to

Bottom right X coordinate

AnchorPosition Options

Property
Type
Details

column

uint

columnOffset

uint

row

uint

rowOffset

uint

PreviousShapeNextTable

Was this helpful?

AnchorPosition
AnchorPosition
HyperlinkProperties