DivisionUnits.Item Property
DivisionUnits.Item Property |
Gets the DivisionUnit object at the specified index within the DivisionUnits collection.
Definition
Visual Basic .NET Public ReadOnly Property Item As DivisionUnit C# public DivisionUnit Item { get; } Managed C++ public: __property DivisionUnit* get_Item(
int *index);
Property Value
Microsoft.Ink.DivisionUnit. The DivisionUnit object at the specified index within the DivisionUnits collection.
This property is read-only. This property has no default value.
Parameters
index System.Int32. [in] The zero-based index of the DivisionUnit object to get.
Exceptions
ArgumentOutOfRangeException : Specified identifier was not found
Remarks
An ArgumentOutOfRangeException is thrown if the index does not match an existing member of the DivisionUnits 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 DivisionUnit object from the DivisionUnits collection, theDivisionUnits.
DivisionUnit theDivisionUnit = theDivisionUnits[0];
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example gets the first DivisionUnit object from the DivisionUnits collection, theDivisionUnits.
Dim theDivisionUnit As DivisionUnit = theDivisionUnits.Item(0)
See Also