# WordContentControlPictureValue

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[WordContentControlForm.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L81)

**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.

### Returned or exposed by 3

- Method [WordContentControlPictureValue.FromBytes](/api/word/officeimo-word-wordcontentcontrolpicturevalue/#method-frombytes-byte-string)
- Method [WordContentControlPictureValue.FromFile](/api/word/officeimo-word-wordcontentcontrolpicturevalue/#method-fromfile-string)
- Method [WordPictureControl.ExtractValue](/api/word/officeimo-word-wordpicturecontrol/#method-extractvalue)

Filter members 

Show inherited

## Methods

`public static WordContentControlPictureValue FromBytes(byte[] bytes, string fileName)` [#](#method-frombytes-byte-string)

[WordContentControlForm.cs:87](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L87)

Creates a picture value from image bytes.

Parameters

**bytes byte[] required**

**fileName string required**

Returns

`WordContentControlPictureValue`

`public static WordContentControlPictureValue FromFile(string filePath)` [#](#method-fromfile-string)

[WordContentControlForm.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L81)

Creates a picture value from a local image path.

Parameters

**filePath string required**

Returns

`WordContentControlPictureValue`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string? FilePath { get; }` [#](#property-filepath)

[WordContentControlForm.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L62)

Optional source file path for a replacement image.

`public byte[]? Bytes { get; }` [#](#property-bytes)

[WordContentControlForm.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L65)

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

`public string FileName { get; }` [#](#property-filename)

[WordContentControlForm.cs:68](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L68)

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

`public Uri? ExternalUri { get; }` [#](#property-externaluri)

[WordContentControlForm.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L71)

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

`public string? RelationshipId { get; }` [#](#property-relationshipid)

[WordContentControlForm.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L74)

Relationship id for an extracted external image, when available.

`public bool IsExternal { get; }` [#](#property-isexternal)

[WordContentControlForm.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Word/WordContentControlForm.cs#L77)

True when the value describes an externally linked image.

<!-- PowerForge markdown artifact sha256:F03171F5D4A0C740A331A83AE2A00CBBFA08AC5C31CC61DBEA77CF54C517355E -->
