Microsoft DirectX 9.0

IMSVidRect.Top

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.

Syntax

objIMSVidRect.Top As Long

Parameters

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.

Remarks

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