Point

Returns, as a long integer, the red-green-blue (RGB) color of the specified point on a Form. Named arguments are not supported.

Syntax

object.Point(x, y)

The parts of the Point method syntax are described in the following table.

Part Description
x, y Required. Single-precision values indicating the horizontal (x-axis) and vertical (y-axis) coordinates of the point in the ScaleMode property of the Form. Parentheses must enclose the values.

Remarks

If the point referred to by the x and y coordinates is outside object, the Point method returns -1.