API Reference

Class

WordPictureControl

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Represents a picture content control within a paragraph.

Inheritance

Usage

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

Methods

public WordContentControlPictureValue ExtractValue() #
Returns: WordContentControlPictureValue

Extracts the current picture content-control image as a form-map value.

public Void Remove() #
Returns: Void

Removes the picture control from the paragraph.

SetImage 2 overloads
public Void SetImage(String filePath, Nullable<Double> width = null, Nullable<Double> height = null) #
Returns: Void

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

Parameters

filePath System.String requiredposition: 0
Image file path.
width System.Nullable{System.Double} = null optionalposition: 1
Optional width of the image.
height System.Nullable{System.Double} = null optionalposition: 2
Optional height of the image.
public Void SetImage(Stream imageStream, String fileName, Nullable<Double> width = null, Nullable<Double> height = null) #
Returns: Void

Replaces the picture content-control image with image data from a stream.

Parameters

imageStream System.IO.Stream requiredposition: 0
Image stream.
fileName System.String requiredposition: 1
File name used to infer image type.
width System.Nullable{System.Double} = null optionalposition: 2
Optional width of the image.
height System.Nullable{System.Double} = null optionalposition: 3
Optional height of the image.

Properties

public String Alias { get; } #

Gets the alias associated with this picture control.

public String Tag { get; set; } #

Gets or sets the tag value for this picture control.

public WordImage Image { get; } #

Gets the image currently contained by the picture content control.