RecognitionAlternates.Item Property

RecognitionAlternates.Item Property

Gets the RecognitionAlternate object at the specified index within the RecognitionAlternates collection.

Definition

Visual Basic .NET Public ReadOnly Property Item As RecognitionAlternate
C# public RecognitionAlternate Item { get; }
Managed C++ public: __property RecognitionAlternate* get_Item(
int *index);

Property Value

Microsoft.Ink.RecognitionAlternate. The RecognitionAlternate object at the specified index within the RecognitionAlternates collection.

This property is read-only. This property has no default value.

Parameters

index System.Int32. [in] The zero-based index of the RecognitionAlternate object to get.

Exceptions

ArgumentOutOfRangeException Leave Site: Specified identifier was not found

Remarks

An ArgumentOutOfRangeException Leave Site is thrown if the index does not match an existing member of the RecognitionAlternates collection.

Note: In C#, use the collection's indexer as shown in the following example, instead of using the collection's Item property.

Examples

[C#]

This C# example gets the first RecognitionAlternate object from the RecognitionAlternates collection, theRecognitionAlternates.

Microsoft.Ink.RecognitionAlternate theFirstAlternate = theRecognitionAlternates[0];

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example gets the first RecognitionAlternate object from the RecognitionAlternates collection, theRecognitionAlternates.

Dim theFirstAlternate As Microsoft.Ink.RecognitionAlternate = theRecognitionAlternates.Item(0)

See Also