ExtendedProperties.IndexOf Method (Guid)
Returns the index of a specific ExtendedProperty object within an ExtendedProperties collection, based on the globally unique identifier (GUID) for the ExtendedProperty object.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in Microsoft.Ink.dll)
Syntax
'Declaration
Public Function IndexOf ( _
id As Guid _
) As Integer
'Usage
Dim instance As ExtendedProperties
Dim id As Guid
Dim returnValue As Integer
returnValue = instance.IndexOf(id)
public int IndexOf(
Guid id
)
public:
int IndexOf(
Guid id
)
public function IndexOf(
id : Guid
) : int
Parameters
id
Type: System.GuidThe Guid of the ExtendedProperty object to check for.
Return Value
Type: System.Int32
Returns the index of the ExtendedProperty object within an ExtendedProperties collection.
Remarks
If a Guid is passed in for an ExtendedProperty object that does not exist in the ExtendedProperties collection, this method returns -1.
Examples
This C# example finds the index for a particular ExtendedProperty object that has a Guid assigned to the variable, theGuid, and that exists in a Stroke object, theStroke.
int theIndex = theStroke.ExtendedProperties.IndexOf(theGUID);
This Microsoft® Visual Basic® .NET example finds the index for a particular ExtendedProperty object that has a Guid assigned to the variable, theGuid, and that exists in a Stroke object, theStroke.
Dim theIndex As Integer = theStroke.ExtendedProperties.IndexOf(theGUID)
Platforms
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0