ExcelImageOptions
OfficeIMO.Excel
Controls worksheet image geometry, source ownership and native drawing metadata.
Inheritance
- object
- ExcelImageOptions
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 4
- Method ExcelReportBuilder.AddImage
- Method ExcelReportBuilder.AddImageAsync
- Method ExcelSheet.AddImage
- Method ExcelSheet.AddImageAsync
Constructors
public ExcelImageOptions() #Inherited Methods
Properties
public OfficeLength? Width { get; set; } #Gets or sets the exact width. Omitted byte-image widths are 96 pixels; loaded sources use detected dimensions.
public OfficeLength? Height { get; set; } #Gets or sets the exact height. Omitted byte-image heights are 32 pixels; loaded sources use detected dimensions.
public double? ScalePercent { get; set; } #Gets or sets a positive percentage of detected source dimensions. Cannot be combined with explicit dimensions or a range anchor.
public OfficeLength OffsetX { get; set; } #Gets or sets the exact horizontal offset of the starting cell marker, including signed native offsets.
public OfficeLength OffsetY { get; set; } #Gets or sets the exact vertical offset of the starting cell marker, including signed native offsets.
public OfficeLength EndOffsetX { get; set; } #Gets or sets the exact horizontal offset of a two-cell ending marker.
public OfficeLength EndOffsetY { get; set; } #Gets or sets the exact vertical offset of a two-cell ending marker.
public ExcelImagePlacement Placement { get; set; } #Gets or sets how a two-cell anchor responds to cell moves and resizes.
public string? Name { get; set; } #Gets or sets the drawing name used by Excel's selection pane.
public string? Description { get; set; } #Gets or sets the alternative text description.
public bool LockAspectRatio { get; set; } #Gets or sets whether the picture's aspect ratio is locked in Excel. Does not infer an omitted dimension.
public double RotationDegrees { get; set; } #Gets or sets the clockwise rotation in degrees.
public string ContentType { get; set; } #Gets or sets the MIME type for native byte payloads. Loaded sources use their validated content type.
public bool LeaveOpen { get; set; } #Gets or sets whether a caller-owned stream stays open on success, cancellation and failure. Its seekable position is preserved.
public bool Deduplicate { get; set; } #Gets or sets whether identical bytes of the same native type reuse an existing image part in this worksheet drawing. Defaults to separate parts.
public OfficeRemoteImageLoadOptions? RemoteImageOptions { get; set; } #Gets or sets the existing network policy for HTTP or HTTPS image loading.