• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Slide

Represents a presentation slide and its editable content.

Inheritance
object
AbstractSlide
Slide
Inherited Members
AbstractSlide.Content
AbstractSlide.Background
AbstractSlide.Replace(string, string, StringComparison)
AbstractSlide.FindAll(string, StringComparison)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Presentation
Assembly: DRIT.Presentation.dll
Syntax
public class Slide : AbstractSlide

Constructors

Slide()

Initializes an empty slide with slide-owned drawing content.

Declaration
public Slide()

Properties

Animation

Gets the collection of animation effects for this slide. Use AddEffect(AbstractShape, EffectPresetClassType, int, EffectTriggerType, int, int) or AddMotionEffect(AbstractShape, IMotionPath, EffectTriggerType, int, int, MotionOriginType, MotionPathEditMode) to add new effects.

Declaration
public SlideAnimationCollection Animation { get; }
Property Value
Type Description
SlideAnimationCollection

BinaryPreservedFragments

Gets binary-only preserved fragments projected for this slide. The projection result is cached and invalidated when binary timeline data changes.

Declaration
public IReadOnlyList<PreservedFragment> BinaryPreservedFragments { get; }
Property Value
Type Description
IReadOnlyList<PreservedFragment>

Comments

Gets the slide comment collection, creating it on first access.

Declaration
public CommentCollection Comments { get; }
Property Value
Type Description
CommentCollection

Controls

Gets the collection of ActiveX controls on this slide.

Declaration
public ControlCollection Controls { get; }
Property Value
Type Description
ControlCollection

HasNotes

Gets whether notes exist directly or can be resolved from a binary notes reference.

Declaration
public bool HasNotes { get; }
Property Value
Type Description
bool

HeaderFooter

Gets the header and footer visibility settings that apply to this slide, inherited from the associated SlideMaster or stored directly for notes surfaces. Returns null when no settings are available.

Declaration
public SlideHeaderFooter HeaderFooter { get; }
Property Value
Type Description
SlideHeaderFooter

Hidden

Gets or sets whether the slide is hidden during slide show.

Declaration
public bool Hidden { get; set; }
Property Value
Type Description
bool

Layout

Gets the LayoutSlide that this slide is based on. Set by AddSlide(LayoutSlide) and the AddSlide(SlideLayoutType) overloads. Assigning a layout reassigns the slide to that layout and its owning master. Null when no layout is available in the source graph, including a slide loaded from a malformed or incomplete file.

Declaration
public LayoutSlide Layout { get; set; }
Property Value
Type Description
LayoutSlide

ModernComments

Gets the top-level threaded comments on this slide. Replies are available from each comment's Replies collection.

Declaration
public ModernCommentCollection ModernComments { get; }
Property Value
Type Description
ModernCommentCollection

Name

Gets or sets the user-visible slide name.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Notes

Gets the notes slide associated with this slide, if available.

Declaration
public Slide Notes { get; }
Property Value
Type Description
Slide

NotesSlide

Gets the NotesSlide wrapper for this slide's notes, or null when no notes slide exists. Use NotesSlideManager or AddNotes() to create one.

Declaration
public NotesSlide NotesSlide { get; }
Property Value
Type Description
NotesSlide

NotesSlideManager

Gets the NotesSlideManager that manages the notes slide lifecycle for this slide.

Declaration
public NotesSlideManager NotesSlideManager { get; }
Property Value
Type Description
NotesSlideManager

SlideId

Gets the unique slide identifier within the presentation.

Declaration
public uint SlideId { get; }
Property Value
Type Description
uint

SlideMaster

Gets the associated slide master.

Declaration
public SlideMaster SlideMaster { get; }
Property Value
Type Description
SlideMaster

SlideNumber

Gets the 1-based slide order number.

Declaration
public int SlideNumber { get; }
Property Value
Type Description
int

Tags

Gets the key-value tag collection for custom data storage on this slide. Maps to p:custDataLst/p:tagLst.

Declaration
public TagCollection Tags { get; }
Property Value
Type Description
TagCollection

Timeline

Gets the animation timeline for this slide, exposing the main sequence, interactive sequences, and text animations.

When the slide was loaded from a binary (PPT) file, the timeline reflects the parsed binary animation data. For authored (OpenXml) effects, use Animation instead.

Declaration
public AnimationTimeLine Timeline { get; }
Property Value
Type Description
AnimationTimeLine

Transition

Gets or sets transition settings for this slide.

Declaration
public SlideTransitionInfo Transition { get; set; }
Property Value
Type Description
SlideTransitionInfo

Methods

AddNotes()

Returns the notes slide for this slide, creating it if it does not yet exist. The notes slide is initialised with a single Body placeholder shape whose FormattedText the caller can populate with the desired text.

Declaration
public Slide AddNotes()
Returns
Type Description
Slide

RemoveNotes()

Removes the notes slide associated with this slide. Returns true when notes were present and removed.

Declaration
public bool RemoveNotes()
Returns
Type Description
bool
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX