Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{description}
{excerpt}The [Slide|Slide] class represents a single PowerPoint Slide.
{excerpt}
{description}
{signature:csharp}
[DefaultMember("Item")]
 public class Slide
{signature}{signature:vb}
<DefaultMember("Item")> _
	Public Class Slide
{signature}

{remarks}
To get an existing Slide call [Presentation.Slides\[index\]|Slides.Item(Int)].
{remarks}
{example}
{code:csharp|title=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"];
{code}
{code:vbnetvb|title=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")
        {code}
{example}

{properties}
|| Name || Description ||
| [Pictures|Slide.Pictures] | {excerpt-include:Slide.Pictures|nopanel=true} |
| [Position|Slide.Position] | {excerpt-include:Slide.Position|nopanel=true} |
{properties}