Partager via


SectionProperties.Delete Method

Deletes the section break that sets off the specified section, and optionally deletes all the slides in the section.

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

Syntax

'Declaration
Sub Delete ( _
    sectionIndex As Integer, _
    deleteSlides As Boolean _
)
'Usage
Dim instance As SectionProperties
Dim sectionIndex As Integer
Dim deleteSlides As Boolean

instance.Delete(sectionIndex, deleteSlides)
void Delete(
    int sectionIndex,
    bool deleteSlides
)

Parameters

  • sectionIndex
    Type: System.Int32
    The index of the section to delete.
  • deleteSlides
    Type: System.Boolean
    Whether to delete all the slides in the section. true, to delete all the slides within the section; false not to delete them.

Remarks

If the presentation contains more than one section, you cannot delete the first section without deleting all of the slides in that section.

See Also

Reference

SectionProperties Interface

SectionProperties Members

Microsoft.Office.Interop.PowerPoint Namespace