Condividi tramite


Metodo ExtendedProperties.IndexOf (Guid)

Aggiornamento: novembre 2007

Restituisce l'indice di un oggetto ExtendedProperty specifico all'interno di un insieme ExtendedProperties, basato sul GUID per l'oggetto ExtendedProperty.

Spazio dei nomi:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Sintassi

'Dichiarazione
Public Function IndexOf ( _
    id As Guid _
) As Integer
'Utilizzo
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

Parametri

Valore restituito

Tipo: System.Int32
Restituisce l'indice dell'oggetto ExtendedProperty all'interno di un insieme ExtendedProperties.

Note

Se il Guid viene passato per un oggetto ExtendedProperty che non esiste nell'insieme ExtendedProperties, questo metodo restituisce -1.

Esempi

In questo esempio di C# viene individuato l'indice per un oggetto ExtendedProperty particolare che dispone di un GUID assegnato alla variabile, theGuid e che è presente in un oggetto Stroke, theStroke.

int theIndex = theStroke.ExtendedProperties.IndexOf(theGUID);

In questo esempio di Microsoft® Visual Basic® .NET viene individuato l'indice per un oggetto ExtendedProperty particolare che dispone di un GUID assegnato alla variabile, theGuid e che è presente in un oggetto Stroke, theStroke.

Dim theIndex As Integer = theStroke.ExtendedProperties.IndexOf(theGUID)

Piattaforme

Windows Vista

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Framework

Supportato in: 3.0

Vedere anche

Riferimenti

ExtendedProperties Classe

Membri ExtendedProperties

Overload IndexOf

Spazio dei nomi Microsoft.Ink

ExtendedProperty