TX Text Control .NET Server

Rectangle Object

Object|Introduced in 25.0

Description

Stores a Point and a Size object that represent the location and size of a rectangle.

Syntax

{
   location: <Point>,
   size: <Size>
}

Examples

The following example demonstrates Rectangle in a practical document-editing workflow. Stores a Point and a Size object that represent the location and size of a rectangle.

function inspectRectangle(rectangle) {
    console.log("location:", rectangle.location);
    console.log("size:", rectangle.size);
}

Members

Properties

PropertyDescription
locationThe location of the rectangle.
sizeThe size of the rectangle.