GemBox.Presentation
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    DrawingPlaceholder Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Represents a type that specifies that the corresponding drawing should be represented by the generating application as a placeholder.

    • C#
    • VB.NET
    public sealed class DrawingPlaceholder
    Public NotInheritable Class DrawingPlaceholder
    Inheritance:
    System.Object
    DrawingPlaceholder

    Properties

    Drawing

    Gets the VisualDrawing associated with this placeholder settings.

    • C#
    • VB.NET
    public VisualDrawing Drawing { get; }
    Public ReadOnly Property Drawing As VisualDrawing
    Property Value
    VisualDrawing

    The VisualDrawing associated with this placeholder settings.

    PlaceholderType

    Gets the content type a placeholder is intended to contain.

    • C#
    • VB.NET
    public PlaceholderType PlaceholderType { get; }
    Public ReadOnly Property PlaceholderType As PlaceholderType
    Property Value
    PlaceholderType

    The content type a placeholder is intended to contain.

    Methods

    SetPicture(Content)

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

    • C#
    • VB.NET
    public Picture SetPicture(Content content)
    Public Function SetPicture(content As Content) As Picture
    Parameters
    content
    Content

    Content of the picture data.

    Returns
    Picture

    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.

    • C#
    • VB.NET
    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
    Picture

    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.

    • C#
    • VB.NET
    public Picture SetPicture(string link)
    Public Function SetPicture(link As String) As Picture
    Parameters
    link
    System.String

    Link to a picture data for a newly set picture.

    Returns
    Picture

    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.

    • C#
    • VB.NET
    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
    Picture

    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.

    • C#
    • VB.NET
    public Table SetTable()
    Public Function SetTable As Table
    Returns
    Table

    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.

    Examples

    Placeholders Example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.