TX Text Control .NET Server

Point Object

Object|Introduced in 25.0

Description

Represents a pair of x- and y-coordinates that defines a point in a two-dimensional plane.

Syntax

{
   x: <number>,
   y: <number>
}

Examples

The following example demonstrates Point in a practical document-editing workflow. It represents a pair of x- and y-coordinates that defines a point in a two-dimensional plane.

function inspectPoint(point) {
    console.log("x:", point.x);
    console.log("y:", point.y);
}

Members

Properties

PropertyDescription
xThe x-coordinate of the point.
yThe y-coordinate of the point.