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

    Show / Hide Table of Contents

    Content Class

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

    Represents an arbitrary content that is either embedded in or linked to the presentation file.

    • C#
    • VB.NET
    public class Content
    Public Class Content
    Inheritance:
    System.Object
    Content

    Properties

    ContentType

    Gets the media type of the content.

    This value can be null if the content is not embedded in but is linked to the presentation file.

    • C#
    • VB.NET
    public string ContentType { get; }
    Public ReadOnly Property ContentType As String
    Property Value
    System.String

    The media type of the content.

    See Also
    Media type

    IsExternal

    Gets a value indicating whether this content is linked to the presentation file.

    • C#
    • VB.NET
    public bool IsExternal { get; }
    Public ReadOnly Property IsExternal As Boolean
    Property Value
    System.Boolean

    true if this content is linked to the presentation file; otherwise, false.

    Link

    Gets the location of the content that is not embedded in the presentation file.

    • C#
    • VB.NET
    public string Link { get; }
    Public ReadOnly Property Link As String
    Property Value
    System.String

    The location of the content that does not reside within the presentation file.

    Methods

    Open()

    Opens the content as a GemBox.Presentation.Content.Stream.

    Make sure to call System.IO.Stream.Dispose on the returned instance after it is no longer used and before it gets out of scope.

    • C#
    • VB.NET
    public Stream Open()
    Public Function Open As Stream
    Returns
    System.IO.Stream

    An instance of a GemBox.Presentation.Content.Stream type that represents content data.

    Remarks

    If content is linked to the presentation file (Link property is not null), this method will attempt to open an external content. This operation might fail if the Link value is not in the correct format or if executing code doesn't have permissions to access content at the location specified in the Link value.

    ToString()

    Returns a System.String that represents this Content instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this Content instance.

    Overrides
    System.Object.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.