TiObjectCanvas.SetObjectFontName

TiObjectCanvas

Used to set an object's font name property value.

procedure SetObjectFontName(Handle : Integer, Name : String);

Description

Call SetObjectFontName to set an object's font name property value.

All objects have a caption property. The Line object does not implement the drawing of the caption. The Rectangle and Ellipse objects will draw the caption centered inside the object.

Example

Delphi

iComponent.SetObjectFontName(5, 'Arial');

C++ Builder

iComponent->SetObjectFontName(5, "Arial");

Contents | Index | Previous | Next