API Reference
Class
WordPictureControl
Represents a picture content control within a paragraph.
Inheritance
- WordElement
- WordPictureControl
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method WordDocument.GetPictureControlByAlias
- Method WordDocument.GetPictureControlByTag
- Property WordDocument.PictureControls
- Method WordParagraph.AddPictureControl
- Property WordParagraph.PictureControl
- Property WordSection.PictureControls
Methods
public WordContentControlPictureValue ExtractValue() #Returns:
WordContentControlPictureValueExtracts the current picture content-control image as a form-map value.
SetImage 2 overloads
public Void SetImage(String filePath, Nullable<Double> width = null, Nullable<Double> height = null) #Returns:
VoidReplaces the picture content-control image with the image at the supplied path.
Parameters
- filePath System.String
- Image file path.
- width System.Nullable{System.Double} = null
- Optional width of the image.
- height System.Nullable{System.Double} = null
- Optional height of the image.
public Void SetImage(Stream imageStream, String fileName, Nullable<Double> width = null, Nullable<Double> height = null) #Returns:
VoidReplaces the picture content-control image with image data from a stream.
Parameters
- imageStream System.IO.Stream
- Image stream.
- fileName System.String
- File name used to infer image type.
- width System.Nullable{System.Double} = null
- Optional width of the image.
- height System.Nullable{System.Double} = null
- Optional height of the image.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object