_Slide.Background Property
Returns a ShapeRange object that represents the slide background.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
ReadOnly Property Background As ShapeRange
Get
'Usage
Dim instance As _Slide
Dim value As ShapeRange
value = instance.Background
ShapeRange Background { get; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.ShapeRange
ShapeRange
Remarks
If you use the Background property to set the background for an individual slide without changing the slide master, the FollowMasterBackground property for that slide must be set to False.
Examples
This example sets the background of the slide master in the active presentation to a preset shade.
ActivePresentation.SlideMaster.Background.Fill.PresetGradient _
Style:=msoGradientHorizontal, Variant:=1, _
PresetGradientType:=msoGradientLateSunset
This example sets the background of slide one in the active presentation to a preset shade.
With ActivePresentation.Slides(1)
.FollowMasterBackground = False
.Background.Fill.PresetGradient Style:=msoGradientHorizontal, _
Variant:=1, PresetGradientType:=msoGradientLateSunset
End With