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

    Show / Hide Table of Contents

    SlideObject Class

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

    Represents a base type for all slide types, such as MasterSlide, LayoutSlide, Slide and NotesSlide.

    • C#
    • VB.NET
    public abstract class SlideObject
    Public MustInherit Class SlideObject
    Inheritance:
    System.Object
    SlideObject
    Derived
    AnimatableSlide
    MasterNotesSlide
    NotesSlide

    Properties

    Background

    Gets or sets the slide background.

    • C#
    • VB.NET
    public SlideBackground Background { get; set; }
    Public Property Background As SlideBackground
    Property Value
    SlideBackground

    The slide background.

    Content

    Gets the slide's content in a form of a root GroupShape that groups all the Drawings contained on this slide.

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

    The slide's content in a form of a root GroupShape that groups all the Drawings contained on this slide.

    ParentTemplate

    Gets the parent template SlideObject or null if this SlideObject is master slide.

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

    The parent template SlideObject or null if this SlideObject is master slide.

    Presentation

    Gets the presentation to which this slide belongs.

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

    The presentation to which this slide belongs.

    ShowMasterShapes

    Gets or sets a value indicating whether the shapes from the ParentTemplate should be shown on this slide.

    Default value is true.

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

    false if the shapes from ParentTemplate are hidden; otherwise, true.

    Remarks

    This property can be applied on layout slides, slides, and notes slides; It's ignored on master slides.

    TextContent

    Gets the text content of the current SlideObject.

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

    The text content of the current SlideObject.

    Remarks

    The property always returns a new instance of the TextRange class.

    For more information, see Find and Replace example.

    Methods

    ToString()

    Returns a System.String that represents this SlideObject instance.

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

    A System.String that represents this SlideObject 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).

    Examples

    Find and Replace example
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.