# WordPictureControlFluent

The fluent methods of WordPictureControl, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordPictureControl](/api/word/officeimo-word-wordpicturecontrol/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- WordPictureControlFluent

Filter members 

Show inherited

## Methods

Image``1 3 overloads

`public static TSelf Image<TSelf>(TSelf wordPictureControl, string filePath, OfficeLength? width = null, OfficeLength? height = null)` [#](#method-image-string-nullable-officeimo-officelength-nullable-officeimo-officelength)

Replaces the picture content-control image with the image at the supplied path.

Type Parameters

**TSelf**

Parameters

**wordPictureControl TSelf required**

The instance.

**filePath string required**

The value.

**width OfficeIMO.OfficeLength? = null optional**

The value.

**height OfficeIMO.OfficeLength? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Image<TSelf>(TSelf wordPictureControl, Stream imageStream, string fileName, OfficeLength? width = null, OfficeLength? height = null)` [#](#method-image-io-stream-string-nullable-officeimo-officelength-nullable-officeimo-officelength)

Replaces the picture content-control image using the supplied stream.

Type Parameters

**TSelf**

Parameters

**wordPictureControl TSelf required**

The instance.

**imageStream System.IO.Stream required**

The value.

**fileName string required**

The value.

**width OfficeIMO.OfficeLength? = null optional**

The value.

**height OfficeIMO.OfficeLength? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Image<TSelf>(TSelf wordPictureControl, Action<WordImage> configure)` [#](#method-image-action-officeimo-word-wordimage)

Configures [WordPictureControl.Image](/api/word/officeimo-word-wordpicturecontrol/) in place: Gets the image currently contained by the picture content control.

Type Parameters

**TSelf**

Parameters

**wordPictureControl TSelf required**

The instance.

**configure System.Action<OfficeIMO.Word.WordImage> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Tag<TSelf>(TSelf wordPictureControl, string? value)` [#](#method-tag-string)

Sets [WordPictureControl.Tag](/api/word/officeimo-word-wordpicturecontrol/): Gets or sets the tag of the picture control.

Type Parameters

**TSelf**

Parameters

**wordPictureControl TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
wordPictureControl.Tag = value;    wordPictureControl.Tag(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:8D00F612AE414DA947AB0160054F423650494AB165835A4F5307729FD954EB75 -->
