Share via


Item Method [IInkDivisionUnits Interface]

Item Method [IInkDivisionUnits Interface]

Returns the IInkDivisionUnit object at the specified index within the IInkDivisionUnits collection.

Declaration

[C++]

HRESULT Item(
    [in] long index,
    [out,retval] IInkDivisionUnit** InkDivisionUnit
);

[Microsoft® Visual Basic® 6.0]

Public Function Item( _
    index As Long _
) As InkDivisionUnit

Parameters

index

[in] The zero-based index of the IInkDivisionUnit object to get.

InkDivisionUnit

[out] Returns the IInkDivisionUnit object at the specified index within the IInkDivisionUnits collection.

Return Value

HRESULT value Description
S_OK Success.
E_POINTER A parameter contains an invalid pointer.
E_INVALIDARG A parameter contains an invalid value.
E_UNEXPECTED Unexpected parameter or property type.
E_INK_EXCEPTION An exception occurred inside the method.

Remarks

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

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example gets the first IInkDivisionUnit object from the IInkDivisionUnits collection theDivisionUnits.

Dim theFirstProperty As IInkDivisionUnit
Set theFirstProperty = theInk.DivisionUnits.Item(0)

Applies To