SetRectEmpty Method

Resets to zero the properties of a DRect object.

Applies to objects: DRect

Syntax

object.SetRectEmpty ()

The SetRectEmpty method syntax has these parts:

Part Description
object A reference to an instance of the object.

Example

This example uses the SetRectEmpty method.

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

' set left,top,right,bottom properties
MyObject.SetRect(100,100,200,300)
' Reset the left,top,right,bottom properties to zero MyObject.SetRectEmpty()

 

See Also

DRect Object