HeadersFooters.SlideNumber Property
Returns a HeaderFooter object that represents the slide number in the lower-right corner of a slide, or the page number in the lower-right corner of a notes page or a page of a printed handout or outline. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property SlideNumber As HeaderFooter
Get
'Usage
Dim instance As HeadersFooters
Dim value As HeaderFooter
value = instance.SlideNumber
HeaderFooter SlideNumber { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.HeaderFooter
HeaderFooter
Examples
This example hides the slide number on slide two in the active presentation if the number is currently visible, or it displays the slide number if it is currently hidden.
With Application.ActivePresentation.Slides(2) _
.HeadersFooters.SlideNumberIf .Visible Then
.Visible = False
Else
.Visible = True
End If
End With