DrawingPlaceholder Class
Represents a type that specifies that the corresponding drawing should be represented by the generating application as a placeholder.
- Inheritance:
- System.ObjectDrawingPlaceholder
Properties
Drawing
Gets the VisualDrawing associated with this placeholder settings.
Property Value
The VisualDrawing associated with this placeholder settings.
PlaceholderType
Gets the content type a placeholder is intended to contain.
public PlaceholderType PlaceholderType { get; }
Public ReadOnly Property PlaceholderType As PlaceholderType
Property Value
The content type a placeholder is intended to contain.
Methods
SetPicture(Content)
Sets the picture with the specified picture data into the current placeholder.
public Picture SetPicture(Content content)
Public Function SetPicture(content As Content) As Picture
Parameters
content
- Content
Content of the picture data.
Returns
The picture that is set into the current placeholder.
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.
.Exceptions
- System.InvalidOperationException
Current drawing is not a placeholder Shape or is not contained in a Slide or its PlaceholderType is neither a Picture nor a ClipArt.
SetPicture(PictureContentType, Stream)
Sets the picture with the specified picture data content type and stream into the current placeholder.
public Picture SetPicture(PictureContentType contentType, Stream stream)
Public Function SetPicture(contentType As PictureContentType, stream As Stream) As Picture
Parameters
contentType
- PictureContentType
Content type of the picture data.
stream
- System.IO.Stream
Stream containing the picture data.
Returns
The picture that is set into the current placeholder.
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.
.Exceptions
- System.InvalidOperationException
Current drawing is not a placeholder Shape or is not contained in a Slide or its PlaceholderType is neither a Picture nor a ClipArt.
SetPicture(String)
Sets the picture with a link to the specified picture data into the current placeholder.
Parameters
link
- System.String
Link to a picture data for a newly set picture.
Returns
The picture that is set into the current placeholder.
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.
.Exceptions
- System.InvalidOperationException
Current drawing is not a placeholder Shape or is not contained in a Slide or its PlaceholderType is neither a Picture nor a ClipArt.
SetPicture(String, Stream)
Sets the picture with the specified picture data content type and stream into the current placeholder.
public Picture SetPicture(string contentType, Stream stream)
Public Function SetPicture(contentType As String, stream As Stream) As Picture
Parameters
contentType
- System.String
Content type (MIME type) of the picture data.
stream
- System.IO.Stream
Stream containing the picture data.
Returns
The picture that is set into the current placeholder.
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.
.Exceptions
- System.InvalidOperationException
Current drawing is not a placeholder Shape or is not contained in a Slide or its PlaceholderType is neither a Picture nor a ClipArt.
SetTable()
Sets the table into the current placeholder.
Returns
The table that is set into the current placeholder.
Remarks
Current placeholder Shape is replaced with the GraphicFrame that contains the returned Table.
This method is only applicable on a placeholder Shape that is contained in a Slide and its PlaceholderType is a Table.
.Exceptions
- System.InvalidOperationException
Current drawing is not a placeholder Shape or is not contained in a Slide or its PlaceholderType is not a Table.