Unit 'ExtCtrls' Package
[Overview][Types][Classes][Procedures and functions][Index] [#lcl]


Indicates if the image should be centered.


Source position: extctrls.pp line 548

public property TCustomImage.Center : Boolean
  read FCenter
  write SetCenter
  default False;


Center is a Boolean property which indicates if the image is drawn aligned to the center of the client area for the control. Center is used in the DestRect method to find the horizontal and vertical coordinates for the Picture aligned to the ClientWidth and ClientHeight for the control.

Changing the value for the property causes the PictureChanged method to be called to invalidate and repaint the image.

The default value for the property is False.

See also



Contains the image displayed in the control.



Performs actions needed when the Picture property has been changed.



Gets the rectangle where the image is painted.

CT Web help

CodeTyphon Studio