Item Method

NI Vision for Visual Basic

Item Method

Syntax

CWIMAQOverlays.Item Item

Return Type

CWIMAQOverlay

Purpose

Returns the specified object from the collection.

Remarks

There is only one valid input for the Item parameter, 1. This input returns the default CWIMAQOverlay object that is associated with this collection.

Parameters

Item As Variant

The index of the object in the collection. The index is one-based. The only valid value is 1.

Example

Private Sub Run_Click()
    Dim Line As New CWIMAQLine
    Line.Initialize 3, 23, 19, 81
    
    'Draw a line to the first CWIMAQOverlay object in the collection.
    CWIMAQViewer1.Image.Overlays.Item(1).DrawLine Line
End Sub

See Also

CWIMAQOverlay

Count