Share via


Master Interface

Represents a slide master, title master, handout master, notes master, or design master.

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

Syntax

'Declaration
<GuidAttribute("9149346C-5A91-11CF-8700-00AA0060263B")> _
Public Interface Master _
    Inherits _Master, MasterEvents_Event
'Usage
Dim instance As Master
[GuidAttribute("9149346C-5A91-11CF-8700-00AA0060263B")]
public interface Master : _Master, MasterEvents_Event

Examples

To return a Master object, use the Master property of the NamedSlideShow object or SlideRange collection, or use the HandoutMaster , NotesMaster , SlideMaster , or TitleMaster property of the Presentation object. Note that some of these properties are also available from the Design object as well. The following example sets the background fill for the slide master for the active presentation.

ActivePresentation.SlideMaster.Background.Fill _

    .PresetGradient msoGradientHorizontal, 1, msoGradientBrass

To add a title master or design to a presentation and return a Master object that represents the new title master or design, use the AddTitleMaster() method. The following example adds a title master to the active presentation and places the title placeholder 10 points from the top of the master.

ActivePresentation.AddTitleMaster.Shapes.Title.Top = 10

See Also

Reference

Master Members

Microsoft.Office.Interop.PowerPoint Namespace