Placeholders.FindByName Method
Finds the placeholder in the Placeholders collection at the specified index location or with the specified name.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function FindByName ( _
Index As Object _
) As Shape
'Usage
Dim instance As Placeholders
Dim Index As Object
Dim returnValue As Shape
returnValue = instance.FindByName(Index)
Shape FindByName(
Object Index
)
Parameters
- Index
Type: System.Object
The index of the placeholder to be found.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.Shape
Remarks
Because it takes an object that can be interpreted as more than one type, the FindByName method makes it possible to locate a member of the Placeholders collection by specifying either the index number (a 32- or 64-bit signed integer) or the name (a string) of an individual placeholder. Unlike the corresponding methods of other collections, such as Shapes or Slides, the FindByName method of the Placeholders collection takes only a 64-bit signed integer.