Rect class

Rect class

The Rect interface is used to represent any rect value. This interface reflects the values in the underlying style property. Hence, modifications made to the CSSPrimitiveValue objects modify the style property.

Inheritance: RectDOMObject

The Rect type exposes the following members:

Properties

PropertyDescription
topThis attribute is used for the top of the rect.
rightThis attribute is used for the right of the rect.
bottomThis attribute is used for the bottom of the rect.
leftThis attribute is used for the left of the rect.

Methods

MethodDescription
get_platform_typeThis method is used to retrieve ECMAScript object Type.

See Also