Canvas.setBounds

Syntax

setBounds(bounds_left: PP.Rect | Number, top: Number, width: Number, height: Number);

Parameters

bounds_left. Left indent from the parent element edge or a rectangle that sets borders.

top. Top indent from parent element edge.

width. Canvas width.

height. Canvas height.

Description

The setBounds method sets canvas boundaries.

Example

The example of method use is given on the Example of Creating the Canvas Component page.

See also:

Canvas