API Reference
Enum
OfficeImageFit
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.
Returned or exposed by
- Field OfficeImageFit.Contain
- Field OfficeImageFit.Cover
- Field OfficeImageFit.Stretch
- Property OfficeImageRenderPlan.Fit
Accepted by parameters
Inherited Methods
public override sealed Int32 CompareTo(Object target) #Returns:
Int32Inherited from Enum
Parameters
- target Object
ToString 4 overloads
public override sealed String ToString(IFormatProvider provider) #Returns:
StringInherited from Enum
Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider
public override sealed 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