API Reference
Class
ExcelImage
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.
Returned or exposed by
- Method ExcelImage.Decorative
- Method ExcelImage.LockAspectRatio
- Method ExcelImage.SetAltText
- Method ExcelImage.SetSize
- Method ExcelSheet.AddImage
- Method ExcelSheet.AddImageFromUrl
- Method ExcelSheet.GetImage
- Property ExcelSheet.Images
Methods
public ExcelImage Decorative() #Returns:
ExcelImageClears image alt text metadata for decorative images.
public ExcelImage LockAspectRatio(Boolean locked = true) #Returns:
ExcelImageControls whether Excel should keep the picture aspect ratio locked.
Parameters
- locked System.Boolean = true
public ExcelImage SetAltText(String description, String title = null) #Returns:
ExcelImageSets image title and description metadata.
Parameters
- description System.String
- title System.String = null
public ExcelImage SetSize(Int32 widthPixels, Int32 heightPixels) #Returns:
ExcelImageSets the image size in pixels.
Parameters
- widthPixels System.Int32
- heightPixels System.Int32
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
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.