ExtendedProperties.IndexOf (Método) (Guid)
Actualización: noviembre 2007
Devuelve el índice de un objeto ExtendedProperty específico en una colección ExtendedProperties, en función del identificador único global (GUID) del objeto ExtendedProperty.
Espacio de nombres: Microsoft.Ink
Ensamblado: Microsoft.Ink (en Microsoft.Ink.dll)
Sintaxis
'Declaración
Public Function IndexOf ( _
id As Guid _
) As Integer
'Uso
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 int IndexOf(
Guid id
)
public function IndexOf(
id : Guid
) : int
Parámetros
- id
Tipo: System.Guid
Guid del objeto ExtendedProperty que se va a comprobar.
Valor devuelto
Tipo: System.Int32
Devuelve el índice del objeto ExtendedProperty en una colección ExtendedProperties.
Comentarios
Si se pasa un Guid para un objeto ExtendedProperty que no existe en la colección ExtendedProperties, este método devuelve -1.
Ejemplos
En este ejemplo de C# se busca el índice para un objeto ExtendedProperty determinado que tiene un Guid asignado a la variable, theGuid y que existe en un objeto Stroke, theStroke.
int theIndex = theStroke.ExtendedProperties.IndexOf(theGUID);
En este ejemplo de Microsoft® Visual Basic® .NET se busca el índice para un objeto ExtendedProperty determinado que tiene un Guid asignado a la variable, theGuid y que existe en un objeto Stroke, theStroke.
Dim theIndex As Integer = theStroke.ExtendedProperties.IndexOf(theGUID)
Plataformas
Windows Vista
.NET Framework y .NET Compact Framework no admiten todas las versiones de cada plataforma. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Información de versión
.NET Framework
Compatible con: 3.0