Show: Delphi C++
Display Preferences

FMX.Types.TControl.SetBounds

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure SetBounds(X, Y, AWidth, AHeight: Single); virtual;

C++

virtual void __fastcall SetBounds(float X, float Y, float AWidth, float AHeight);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TControl

Description

Sets the boundaries of the current control.

Use SetBounds to change all of the control's boundary properties at one time.

X specifies the X coordinate of the control's Position.

Y specifies the Y coordinate of the control's Position.

AWidth specifies the value of the control's Width.

AHeight specifies the value of the control's Height.

The same effect can be achieved by setting the Position, Width, and Height properties separately, but SetBounds changes all properties at once, ensuring that the control will not repaint between changes.

After setting the boundary properties, SetBounds specifies to the control to maintain the alignment of the control within its parent and of its children within it. The given parameter does not necessarily reflect in the Position, Width, and Height properties. The properties can be updated when the alignment is applied.

See Also

Personal tools
Previous Versions
Translations