Share via


Tags.Item Property

Returns a single tag from the specified Tags collection.

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

Syntax

'Declaration
ReadOnly Default Property Item ( _
    Name As String _
) As String
    Get
'Usage
Dim instance As Tags
Dim Name As String
Dim value As String

value = instance(Name)
string this[
    string Name
] { get; }

Parameters

  • Name
    Type: System.String
    The name of the single tag in the collection to be returned.

Property Value

Type: System.String
String

Examples

This example hides all slides in the active presentation that don't have the value "east" for the "region" tag.

For Each s In ActivePresentation.Slides

    If s.Tags.Item("region") <> "east" Then

        s.SlideShowTransition.Hidden = True

    End If

Next

See Also

Reference

Tags Interface

Tags Members

Microsoft.Office.Interop.PowerPoint Namespace