API Reference

Class

WordTemplateImage

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers sealed

Describes an embedded image supplied to a Word template placeholder.

Inheritance

  • Object
  • WordTemplateImage

Constructors

public WordTemplateImage(Byte[] content, String fileName, Nullable<Double> width = null, Nullable<Double> height = null, String description = "") #

Creates an embedded image value from encoded image bytes.

Parameters

content System.Byte[] requiredposition: 0
Encoded image bytes, such as PNG or JPEG content.
fileName System.String requiredposition: 1
File name with an extension that identifies the image format.
width System.Nullable{System.Double} = null optionalposition: 2
Optional width in pixels.
height System.Nullable{System.Double} = null optionalposition: 3
Optional height in pixels.
description System.String = "" optionalposition: 4
Alternative-text description stored with the image.

Properties

public Byte[] Content { get; } #

Gets a copy of the encoded image bytes.

public String FileName { get; } #

Gets the image file name used to identify its format.

public Nullable<Double> Width { get; } #

Gets the optional image width in pixels.

public Nullable<Double> Height { get; } #

Gets the optional image height in pixels.

public String Description { get; } #

Gets the image alternative-text description.