API Reference

Class

WordContentControlPictureValue

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word
Modifiers sealed

Represents a picture content-control value that can be extracted from or supplied to a form map.

Inheritance

  • Object
  • WordContentControlPictureValue

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public static WordContentControlPictureValue FromBytes(Byte[] bytes, String fileName) #
Returns: WordContentControlPictureValue

Creates a picture value from image bytes.

Parameters

bytes System.Byte[] requiredposition: 0
fileName System.String requiredposition: 1
public static WordContentControlPictureValue FromFile(String filePath) #
Returns: WordContentControlPictureValue

Creates a picture value from a local image path.

Parameters

filePath System.String requiredposition: 0

Properties

public String FilePath { get; } #

Optional source file path for a replacement image.

public Byte[] Bytes { get; } #

Embedded image bytes, when the value was extracted from package content or supplied from memory.

public String FileName { get; } #

File name used to infer image type for byte-backed replacements.

public Uri ExternalUri { get; } #

External image URI when the extracted picture is linked instead of embedded.

public String RelationshipId { get; } #

Relationship id for an extracted external image, when available.

public Boolean IsExternal { get; } #

True when the value describes an externally linked image.