TX Text Control .NET Server

Size Object

Object|Introduced in 25.0

Description

Stores a pair of numbers which specify a height and width.

Syntax

{
   width: <number>,
   height: <number>
}

Examples

The following example demonstrates Size in a practical document-editing workflow. Stores a pair of numbers which specify a height and width.

function inspectSize(size) {
    console.log("width:", size.width);
    console.log("height:", size.height);
}

Members

Properties

PropertyDescription
heightThe height.
widthThe width.