Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordPictureControlFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of 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

Methods

Image``1 3 overloads
public static TSelf Image<TSelf>(TSelf wordPictureControl, string filePath, OfficeLength? width = null, OfficeLength? height = null) #

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) #

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) #

Configures WordPictureControl.Image 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) #

Sets WordPictureControl.Tag: 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

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