ExtendedProperties.Item Property
ExtendedProperties.Item Property |
Gets the ExtendedProperty object at the specified index within the ExtendedProperties collection.
Definition
Visual Basic .NET Public ReadOnly Property Item As ExtendedProperty C# public ExtendedProperty Item { get; } Managed C++ public: __property ExtendedProperty* get_Item(
Guid *id);
Property Value
Microsoft.Ink.ExtendedProperty. The ExtendedProperty object at the specified index within the ExtendedProperties collection.
This property is read-only. This property has no default value.
Parameters
id System.Guid. [in] The GUID identifier of the ExtendedProperty object to get.
Exceptions
ArgumentException : Guid identifier does not match a property in the collection
COMException :
Remarks
An ArgumentException is thrown if the id does not match an existing member of the ExtendedProperties 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 an ExtendedProperty object from the ExtendedProperties collection of a Stroke, theStroke, by using a Guid, extendedPropertyGuid.
ExtendedProperty theExtendedProperty = theStroke.ExtendedProperties[extendedPropertyGuid];
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example gets the an ExtendedProperty object from the ExtendedProperties collection of a Stroke, theStroke, by using a Guid, extendedPropertyGuid.
Dim theExtendedProperty As ExtendedProperty = theStroke.ExtendedProperties.Item(extendedPropertyGuid)
See Also