SetRect Method

Sets the left, top, right, bottom coordinates of an instance of the object.

Applies to objects: DRect

Syntax

object.SetRect(left, top, right, bottom)

The SetRect statement syntax has these parts:

Part Description
object A reference to an instance of the object.
left, top, right, bottom The coordinates of the rectanlge, Double values.

Remarks

This method offers a faster way of setting the coordinates of a rectangle, rather then setting them for each property separately.

Example

' Create an instance of the object
Dim MyObject as new DRect

' Set left,top,right,bottom properties
MyObject.SetRect(100,100,1000,1000)

 

See Also

DRect Object