Vcl.ExtCtrls.TImage.Center

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Center: Boolean read FCenter write SetCenter default False;

C++

__property bool Center = {read=FCenter, write=SetCenter, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TImage

Description

Indicates whether the image is centered in the image control.

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.

See Also