_Slide.Layout Property
Returns or sets a PpSlideLayout constant that represents the slide layout. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property Layout As PpSlideLayout
Get
Set
'Usage
Dim instance As _Slide
Dim value As PpSlideLayout
value = instance.Layout
instance.Layout = value
PpSlideLayout Layout { get; set; }
Property Value
Type: Microsoft.Office.Interop.PowerPoint.PpSlideLayout
Remarks
The value of the Layout property can be one of these PpSlideLayout constants.
ppLayoutBlank |
ppLayoutChart |
ppLayoutChartAndText |
ppLayoutClipartAndText |
ppLayoutClipArtAndVerticalText |
ppLayoutFourObjects |
ppLayoutLargeObject |
ppLayoutMediaClipAndText |
ppLayoutMixed |
ppLayoutObject |
ppLayoutObjectAndText |
ppLayoutObjectOverText |
ppLayoutOrgchart |
ppLayoutTable |
ppLayoutText |
ppLayoutTextAndChart |
ppLayoutTextAndClipart |
ppLayoutTextAndMediaClip |
ppLayoutTextAndObject |
ppLayoutTextAndTwoObjects |
ppLayoutTextOverObject |
ppLayoutTitle |
ppLayoutTitleOnly |
ppLayoutTwoColumnText |
ppLayoutTwoObjectsAndText |
ppLayoutTwoObjectsOverText |
ppLayoutVerticalText |
ppLayoutVerticalTitleAndText |
ppLayoutVerticalTitleAndTextOverChart |
Examples
This example changes the layout of slide one in the active presentation to include a title and subtitle if it initially has only a title.
With ActivePresentation.Slides(1)
If .Layout= ppLayoutTitleOnly Then
.Layout= ppLayoutTitle
End If
End With