TextStyleLevel Interface
Contains character and paragraph formatting information for an outline level.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
<GuidAttribute("9149349B-5A91-11CF-8700-00AA0060263B")> _
Public Interface TextStyleLevel
'Usage
Dim instance As TextStyleLevel
[GuidAttribute("9149349B-5A91-11CF-8700-00AA0060263B")]
public interface TextStyleLevel
Remarks
The TextStyleLevel object is a member of the TextStyleLevels collection. The TextStyleLevels collection contains one TextStyleLevel object for each of the five outline levels.
Examples
Use Levels(index), where index is a number from 1 through 5 that corresponds to the outline level, to return a single TextStyleLevel object. The following example sets the font name and font size, the space before paragraphs, and the paragraph alignment for level-one body text on all the slides in the active presentation.
With ActivePresentation.SlideMaster _
.TextStyles(ppBodyStyle).Levels(1)
With .Font
.Name = "Arial"
.Size = 36
End With
With .ParagraphFormat
.LineRuleBefore = False
.SpaceBefore = 14
.Alignment = ppAlignJustify
End With
End With