TextStyles.Item Property

Returns a single text style from the specified TextStyles collection.

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

Syntax

'Declaration
ReadOnly Property Item ( _
    Type As PpTextStyleType _
) As TextStyle
    Get
'Usage
Dim instance As TextStyles
Dim Type As PpTextStyleType
Dim value As TextStyle

value = instance.Item(Type)
TextStyle this[
    PpTextStyleType Type
] { get; }

Parameters

Property Value

Type: Microsoft.Office.Interop.PowerPoint.TextStyle

Remarks

The Item method is the default member for a collection. For example, the following two lines of code are equivalent:

ActivePresentation.Slides.Item(1)

ActivePresentation.Slides(1

The Type parameter value can be one of the following PpTextStyleType constants:

ppBodyStyle

ppDefaultStyle

ppTitleStyle

See Also

Reference

TextStyles Interface

TextStyles Members

Microsoft.Office.Interop.PowerPoint Namespace