Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Enum

OfficeImageFit

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed

Reusable image fitting modes for placing raster images inside a target box.

Inheritance

  • Enum
  • OfficeImageFit

Usage

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

Accepted by parameters

Values

public const OfficeImageFit Stretch #

Scale the image to exactly fill the target width and height.

Value: 0
public const OfficeImageFit Contain #

Scale the image proportionally so the whole image fits inside the target box.

Value: 1
public const OfficeImageFit Cover #

Scale the image proportionally so the target box is fully covered, clipping any overflow.

Value: 2