Sign in Join
FPDoc Onlineexperiment

TCustomImage.Center property

Member of TCustomImagepublicIn unit ExtCtrls

Indicates if the image should be centered.

Declaration

pascal
property 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.