Share via


_Slide.FollowMasterBackground Property

Determines whether the slide follows the slide master background. Read/write.

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

Syntax

'Declaration
Property FollowMasterBackground As MsoTriState
    Get
    Set
'Usage
Dim instance As _Slide
Dim value As MsoTriState

value = instance.FollowMasterBackground

instance.FollowMasterBackground = value
MsoTriState FollowMasterBackground { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

The value of the FollowMasterBackground property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The specified slide or range of slides has a custom background.

msoTrue

The specified slide or range of slides follows the slide master background.

When you create a new slide, the default value for this property is True. If you copy a slide from another presentation, it retains the setting it had in the original presentation. That is, if the slide followed the slide master background in the original presentation, it will automatically follow the slide master background in the new presentation; or, if the slide had a custom background, it will retain that custom background.

Note that the look of the slide's background is determined by the color scheme and background objects and by the background itself. If setting the FollowMasterBackground property alone doesn't give you the results you want, try setting the ColorScheme and DisplayMasterShapes properties as well.

Examples

This example copies slide one from presentation two, pastes the slide at the end of presentation one, and matches the slide's background, color scheme, and background objects to the rest of presentation one.

Presentations(2).Slides(1).Copy

With Presentations(1).Slides.Paste

    .FollowMasterBackground= msoTrue

    .ColorScheme = Presentations(1).SlideMaster.ColorScheme

    .DisplayMasterShapes = True

End With

See Also

Reference

_Slide Interface

_Slide Members

Microsoft.Office.Interop.PowerPoint Namespace