Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordContentControlPictureValue

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

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

Inheritance

  • object
  • WordContentControlPictureValue

Usage

Explore 3 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.

Methods

public static WordContentControlPictureValue FromBytes(byte[] bytes, string fileName) #

Creates a picture value from image bytes.

Parameters

bytes byte[] required
fileName string required
public static WordContentControlPictureValue FromFile(string filePath) #

Creates a picture value from a local image path.

Parameters

filePath string required

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 bool IsExternal { get; } #

True when the value describes an externally linked image.