Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

The Slide class represents a single PowerPoint Slide.

Description

Signature
csharp
csharp

[DefaultMember("Item")]
 public class Slide
Signature
vb
vb

<DefaultMember("Item")> _
	Public Class Slide

...

Example
Code Block
csharp
csharp
titleC#
            //--- 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"];
Code Block
vb
vb
titlevb.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

Excerpt Include
Slide.Pictures
Slide.Pictures
nopaneltrue

Position

Excerpt Include
Slide.Position
Slide.Position
nopaneltrue

...