Class
WordTemplateImage
OfficeIMO.Word
Describes an embedded image supplied to a Word template placeholder.
Inheritance
- object
- WordTemplateImage
Constructors
public WordTemplateImage(byte[] content, string fileName, OfficeLength? width = null, OfficeLength? height = null, string altText = "") #Creates an embedded image value from encoded image bytes.
Parameters
- content byte[]
- Encoded image bytes, such as PNG or JPEG content.
- fileName string
- File name with an extension that identifies the image format.
- width OfficeIMO.OfficeLength? = null
- Optional placed width; omitted dimensions use the image aspect ratio or intrinsic size at 96 DPI.
- height OfficeIMO.OfficeLength? = null
- Optional placed height; omitted dimensions use the image aspect ratio or intrinsic size at 96 DPI.
- altText string = ""
- Alternative text stored with the image.