Microsoft DirectX 9.0


This topic applies to Windows XP only.

The Top property sets or retrieves the top y-coordinate of the rectangle. This coordinate is relative to the rectangle's associated window.


objIMSVidRect.Top As Long


This property takes no parameters.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

Returns the top y-coordinate, in pixels.


Setting this property also changes the height of the rectangle. For example, if the Top property is zero and the Height property is 100, setting the Top property to 10 changes the Height property to 90.

This property is read/write.

See Also