[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomImage.Center

Indicates if the image should be centered.

## Declaration

Source position: extctrls.pp line 582

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

## Description

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

TCustomImage.Picture |  | Contains the image displayed in the control.
TCustomImage.PictureChanged |  | Performs actions needed when the Picture property has been changed.
TCustomImage.DestRect |  | Gets the rectangle where the image is painted.