共用方式為


SlideRange.ApplyTheme Method

Applies a theme or design template to the specified range of slides.

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

Syntax

'Declaration
Sub ApplyTheme ( _
    themeName As String _
)
'Usage
Dim instance As SlideRange
Dim themeName As String

instance.ApplyTheme(themeName)
void ApplyTheme(
    string themeName
)

Parameters

  • themeName
    Type: System.String
    The path and name of the theme file (.thmx) or design template file (.pot) to apply to the SlideRange object.

See Also

Reference

SlideRange Interface

SlideRange Members

Microsoft.Office.Interop.PowerPoint Namespace