Skip to end of metadata
Go to start of metadata

Description

The Slide class represents a single PowerPoint Slide.

Description

C#
[DefaultMember("Item")]
 public class Slide
vb.net
<DefaultMember("Item")> _
	Public Class Slide

Remarks

To get an existing Slide call Presentation.Slides[index].

Examples

C#
          //--- Create a new Worksheet
          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create(PowerPointWriter.FileFormat.Pptx);
          Slide slide1 = pres.Slides[0];

          //--- Get an existing Worksheet by index
          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create();
          Slide slide1 = pres.Slides[0];

          //--- Get an existing Worksheet by name
          PowerPointApplication ppta = new PowerPointApplication();
          Presentation pres = ppta.Create();
          Slide slide1 = pres.Slides["Slide1"];
vb.net
          '--- Create a new Worksheet
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create(PowerPointWriter.FileFormat.Pptx)
          Dim slide1 As Slide = pres.Slides(0)

          '--- Get an existing Worksheet by index
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create()
          Dim slide1 As Slide = pres.Slides(0)

          '--- Get an existing Worksheet by name
          Dim ppta As New PowerPointApplication()
          Dim pres As Presentation = ppta.Create()
          Dim slide1 As Slide = pres.Slides("Slide2")
        

Properties

Name

Description

Pictures

Returns a Pictures collection containing all pictures in the slide. Use this collection to add, access, and remove pictures from the slide.

Position

Returns the 0-based index of the slide in the collection of all slides in the presentation.

 

 

  • No labels