

| Type | Description | |||
| Index as Long | A Long expression that specifies the index of the item to be requested | |||
| Source as Object | The source object to be filled. | |||
| ItemHandle as Long | A Long expression that specifies the handle of the item in the source, that's associated with the requested index. |
The following VB sample shows how ReadItem could be implemented:
Private Sub IUnboundHandler_ReadItem(ByVal Index As Long, ByVal Source As Object, ByVal ItemHandle As Long)
With Source.Items
.CellCaption(ItemHandle, 0) = Index + 1
End With
End Sub
The following VB/NET sample shows how ReadItem could be implemented:
Public Sub ReadItem(ByVal Index As Integer, ByVal Source As Object, ByVal ItemHandle As Integer) Implements EXCOMBOBOXLib.IUnboundHandler.ReadItem
With Source.Items
.CellCaption(ItemHandle, 0) = Index + 1
End With
End Sub
The following C# sample shows how ReadItem could be implemented:
public void ReadItem(int Index, object Source, int ItemHandle)
{
(Source as EXCOMBOBOXLib.IComboBox).Items.set_CellCaption(ItemHandle, 0, Index + 1);
}
The following VFP sample shows how ReadItem could be implemented:
function IUnboundHandler_ReadItem(Index, Source, ItemHandle)
With Source.Items
.CellCaption(ItemHandle, 0) = Index + 1
EndWith
endfunc