HeaderPane
Main
Hide
Share Link
Print

SftBox.ControlAlign Property

Defines the control's alignment during resizing.

Syntax

Get

C#SftBoxControlAlignConstants Align = object.ControlAlign;
VB.NETAlign = object.ControlAlign As SftBoxControlAlignConstants
C++enum SftBoxControlAlignConstants Align = object->ControlAlign;
enum SftBoxControlAlignConstants Align = object->GetControlAlign();
CHRESULT object->get_ControlAlign(enum SftBoxControlAlignConstants* Align);
VBAlign = object.ControlAlign As SftBoxControlAlignConstants

Put

C#SftBoxControlAlignConstants object.ControlAlign = Align;
VB.NETobject.ControlAlign = Align As SftBoxControlAlignConstants
C++enum SftBoxControlAlignConstants object->ControlAlign = Align;
void object->PutControlAlign(enum SftBoxControlAlignConstants Align);
CHRESULT object->put_ControlAlign(enum SftBoxControlAlignConstants Align);
VBobject.ControlAlign = Align As SftBoxControlAlignConstants

object

A SftBox object.

Align

Defines the control alignment during resizing of the control.

AlignValueDescription
controlAlignSftBoxTop0Keeps the top edge at the same location when the control resizes itself.
controlAlignSftBoxCenter1Keeps the center of the control at the same location when the control resizes itself.
controlAlignSftBoxBottom2Keeps the bottom edge at the same location when the control resizes itself.

Comments

The ControlAlign property defines the control's alignment during resizing.

The control can resize itself for a number of reasons. For example, when variable height items are used the control's height varies. If column headers are enabled or disabled dynamically, the control's height also needs to be adjusted. When the control is resized, the ControlAlign property determines how the control is aligned after its new size is determined.

See Also SftBox Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.