Click or drag to resize

DrawingPlaceholderSetPicture Method (Content)

Sets the picture with the specified picture data into the current placeholder.

Namespace:  GemBox.Presentation
Assembly:  GemBox.Presentation (in GemBox.Presentation.dll) Version: 21.3.35.1045 (21.3.35.1045)
Syntax
public Picture SetPicture(
	Content content
)

Parameters

content
Type: GemBox.PresentationContent
Content of the picture data.

Return Value

Type: Picture
The picture that is set into the current placeholder.
Exceptions
ExceptionCondition
InvalidOperationExceptionCurrent drawing is not a placeholder Shape or is not contained in a Slide or its PlaceholderType is neither a Picture nor a ClipArt.
Remarks

Current placeholder Shape is replaced with the returned Picture.

This method is only applicable on a placeholder Shape that is contained in a Slide and its PlaceholderType is either a Picture or a ClipArt.

.
See Also