PointSet

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.PointSet x, y, color

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

Part Description
object Optional. An object expression that evaluates to an object. If object is omitted, the Form object with the focus is assumed to be object.
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.
color Required.

Remarks

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