Share via


ExtendedProperties.get_Item Method

ExtendedProperties.get_Item Method

Returns the ExtendedProperty object at the known index in a ExtendedProperties collection.

Definition

Visual Basic .NET Public Function get_Item( _
ByVal id As Guid _
) As ExtendedProperty
C# public ExtendedProperty get_Item(
Guid id
);
Managed C++ public: ExtendedProperty* get_Item(
Guid *id
);

Parameters

id System.Guid. The GUID identifier of the ExtendedProperty object to return from the collection.

Return Value

Microsoft.Ink.ExtendedProperty. Returns the ExtendedProperty object at the known index in a ExtendedProperties collection.

Remarks

An error occurs if the index doesn't match any existing member of the ExtendedProperties collection.

Note: [C#]  Use the ExtendedProperties collection's indexer as shown in the following example rather than using the ExtendedProperties collection's get_Item method.

Examples

[C#]

This C# example gets a ExtendedProperty from the ExtendedProperties property of a Stroke named theStroke. It assumes that you have previously stored a Guid for an ExtendedProperty called thePropertyGuid

ExtendedProperty theExtendedProperty= theStroke.ExtendedProperties[thePropertyGuid];
                    

[VB.NET]

This Microsoft® Visual Basic® .NET example gets a ExtendedProperty from the ExtendedProperties property of a Stroke named theStroke. It assumes that you have previously stored a Guid for an ExtendedProperty called thePropertyGuid

Dim theExtendedProperty As ExtendedProperty = theStroke.ExtendedProperties(thePropertyGuid)
                

See Also