GetWidth Method

A Double value. Returns the width of the rectangle.

Applies to objects: DRect

Syntax

[[Let] width = ] object.GetWidth()

The GetWidth method syntax has these parts:

Part Description
width A Double type variable.
object A reference to an instance of the object.

Example

This example is used to calculate the width of a rectangle, which coordinates are stored in MyObject.

Dim w as Double, MyObject as new DRect

' Set DRect object properties
MyObject.SetRect(30,30,100,90) ' Determine the width of MyObject w = MyObject.GetWidth() ' w = 70

 

See Also

DRect Object, GetHeight Method