TiObjectCanvas.SetObjectFont
TiObjectCanvas
Used to set an object's font attributes.
procedure SetObjectFont(Handle : Integer, Name : String, , Size : Integer, , Color : TColor, , Bold, Italic, UnderLine, StrikeOut : Boolean);
Description
Call SetObjectFont to set an object's font attributes.
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.SetObjectFont(5, 'Arial', 12, clWhite, True, False, False, False);
C++ Builder
iComponent->SetObjectFont(5, "Arial", 12, clWhite, True, False, False, False);
Contents | Index | Previous | Next