Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Enum

OfficeImageFit

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
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

Explore 6 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 1

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