Controls.TControl.Top

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Controls.pas

	property Top: Integer read FTop write SetTop;


Unit: Controls

Type: property

Visibility: published

Member Of: TControl

C++ Information

From Controls.hpp

	__property int Top = {read=FTop,write=SetTop};


Unit: Controls

Type: property

Visibility: public

Member Of: TControl

Description

Specifies the Y coordinate of the top left corner of a control, relative to its parent or containing control in pixels.


Use Top to locate the top of the control or reposition the control to a different Y coordinate. The Top property, like the Left property, is the position of the control relative to its container. Thus, if a control is contained in a TPanel, the Left and Top properties are relative to the panel. If the control is contained directly by the form, it is relative to the form. For forms, the value of the Top property is relative to the screen in pixels.

See Also

Code Samples


Personal tools
Translations
Newest Version