API Reference
Enum
OfficeImageFit
Reusable image fitting modes for placing raster images inside a target box.
Inheritance
- Enum
- OfficeImageFit
Usage
Explore 9 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.
Returned or exposed by 6
- Field OfficeImageFit.Contain
- Field OfficeImageFit.Cover
- Field OfficeImageFit.Stretch
- Property OfficeImageRenderPlan.Fit
- Property OfficeRasterResizeOptions.Fit
- Property OfficeRasterResizePlan.Fit
Accepted by parameters 3
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from Enum
Parameters
- obj Object?
ToString 4 overloads
public String ToString(IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
public String ToString(String? format, IFormatProvider? provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format String?
- provider IFormatProvider?
Values
public const OfficeImageFit Stretch #Scale the image to exactly fill the target width and height.
Value:
0public const OfficeImageFit Contain #Scale the image proportionally so the whole image fits inside the target box.
Value:
1public const OfficeImageFit Cover #Scale the image proportionally so the target box is fully covered, clipping any overflow.
Value:
2