Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBox.ControlAlign Property

Defines the control's alignment during resizing.

Syntax

Get

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

Put

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

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 08/13/2020 - (email)
© 2024 Softel vdm, Inc.