Condividi tramite


Slide Interface

Represents a slide. The Slides collection contains all the Slide objects in a presentation.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
<GuidAttribute("9149346A-5A91-11CF-8700-00AA0060263B")> _
Public Interface Slide _
    Inherits _Slide, SldEvents_Event
'Usage
Dim instance As Slide
[GuidAttribute("9149346A-5A91-11CF-8700-00AA0060263B")]
public interface Slide : _Slide, SldEvents_Event

Remarks

An interface in the Microsoft® .NET Framework that is derived from a COM coclass. Managed code requires the interface to interoperate with the corresponding COM object. Use the derived interface to access all method, property, and event members of the COM object. However, if you want to use a method or an event that shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event.

For information about the method and property members of the COM object, see _Slide. For information about the event members of the COM object, see SldEvents_Event.

Note

Don't be confused if you're trying to return a reference to a single slide but you end up with a SlideRange object. A single slide can be represented either by a Slide object or by a SlideRange collection that contains only one slide, depending on how you return a reference to the slide. For example, if you create and return a reference to a slide by using the Add(MsoTriState) method, the slide is represented by a Slide object. However, if you create and return a reference to a slide by using the Duplicate() method, the slide is represented by a SlideRange collection that contains a single slide. Because all the properties and methods that apply to a Slide object also apply to a SlideRange collection that contains a single slide, you can work with the returned slide in the same way, regardless of whether it is represented by a Slide object or a SlideRange collection.

See Also

Reference

Slide Members

Microsoft.Office.Interop.PowerPoint Namespace