API Reference

Class

ExcelImage

Namespace OfficeIMO.Excel
Assembly OfficeIMO.Excel
Modifiers sealed

Represents a worksheet image anchored in the drawing layer.

Inheritance

  • Object
  • ExcelImage

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public ExcelImage Decorative() #
Returns: ExcelImage

Clears image alt text metadata for decorative images.

public ExcelImage LockAspectRatio(Boolean locked = true) #
Returns: ExcelImage

Controls whether Excel should keep the picture aspect ratio locked.

Parameters

locked System.Boolean = true optionalposition: 0
public ExcelImage SetAltText(String description, String title = null) #
Returns: ExcelImage

Sets image title and description metadata.

Parameters

description System.String requiredposition: 0
title System.String = null optionalposition: 1
public ExcelImage SetSize(Int32 widthPixels, Int32 heightPixels) #
Returns: ExcelImage

Sets the image size in pixels.

Parameters

widthPixels System.Int32 requiredposition: 0
heightPixels System.Int32 requiredposition: 1

Properties

public String Name { get; set; } #

Gets or sets the image drawing name.

public String Title { get; set; } #

Gets or sets the image title metadata.

public String Description { get; set; } #

Gets or sets the image alternative text description.

public Boolean IsAspectRatioLocked { get; } #

Gets whether Excel should keep the picture aspect ratio locked.