Skip to main content

TdxZone.Direction Property

Returns the resizing direction.

Declaration

property Direction: TdxZoneDirection read;

Property Value

Type
TdxZoneDirection

Remarks

The Direction property is useful for resize zones only. It enables you to determine whether the zone can initiate horizontal or vertical resizing. If you use the resize zone as the parameter of events that control the resizing process, the Direction property indicates whether the width or height of the control is being changed.

The following values can be returned by the Direction property.

Value Description
zdUndefined This value is returned by zones that cannot initiate control resizing.
zdVertical This value is returned by zones located at the top or bottom edge of the control. It indicates that this zone can initiate vertical resizing. In other words, the height of the control will change when resizing. When the mouse pointer is over a zone that returns this value, it displays a horizontal splitter.
zdHorizontal This value is returned by zones located at the left or right edge of the control. It indicates that this zone can initiate horizontal resizing. In other words, the width of the control will change when resizing. When the mouse pointer is over a zone that returns this value, it displays a vertical splitter.
See Also