TiObjectCanvas.AddRectangle

TiObjectCanvas

Adds a rectangle object to the control.

function AddRectangle(X, Y, Width, Height : Double) : Integer;

Description

Call AddRectangle to add an rectangle object to the canvas. All other properties of the rectangle not specified in the parameters will be set to the default values. Store the handle returned if you wish to manipulate the object at a later time or to set the other properties of the object.

Example

Delphi

Rectangle1Handle := iComponent.AddRectangle(0, 0, 20, 20);

C++ Builder

Rectangle1Handle = iComponent->AddRectangle(0, 0, 20, 20);

Contents | Index | Previous | Next