Class
WordPictureControlFluent
OfficeIMO.Word
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
- The instance.
- filePath string
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- 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
- The instance.
- imageStream System.IO.Stream
- The value.
- fileName string
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- 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
- The instance.
- configure System.Action<OfficeIMO.Word.WordImage>
- 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
- The instance.
- value string?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordPictureControl.Tag = value; wordPictureControl.Tag(value);