RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TImage.Center Property

Indicates whether the image is centered in the image control.

Pascal
property Center: Boolean;
C++
__property Boolean Center;

When the image does not fit perfectly within the image control, use Center to specify how the image is positioned. When Center is true, the image is centered in the control. When Center is false, the upper left corner of the image is positioned at the upper left corner of the control. 

The default value for Center is false.

Note: Center has no effect if the AutoSize property is true or if the Stretch property is true and Picture does not specify an icon.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!