Point Method

Applies To   See Also

Returns the red-green-blue (RGB) color of the specified point on a form.

Syntax

Object.Point ([nXCoord, nYCoord])

Arguments

nXCoord

Specifies the horizontal coordinate of the point, in the units specified in the ScaleMode property setting of the form.

nYCoord

Specifies the vertical coordinate of the point, in the units specified in the ScaleMode property setting of the form.

Remarks

If nXCoord or nYCoord is outside of the form, the Point method returns  – 1.