SftBox/OCX 4.5

SftBox.ControlAlign Property

Softel vdm, Inc.

Defines the control's alignment during resizing.

Syntax       

Get

VB.NET

Align = object.ControlAlign  As SftBoxControlAlignConstants

VB

Align = object.ControlAlign  As SftBoxControlAlignConstants

C#.NET

SftBoxControlAlignConstants Align = object.ControlAlign;

VC++

enum SftBoxControlAlignConstants Align = object->ControlAlign;
enum SftBoxControlAlignConstants Align = object->GetControlAlign();

C

HRESULT object->get_ControlAlign(enum SftBoxControlAlignConstants* Align);

Delphi

Align := object.ControlAlign  : TOleEnum;

Put

VB.NET

object.ControlAlign = Align  As SftBoxControlAlignConstants

VB

object.ControlAlign = Align  As SftBoxControlAlignConstants

C#.NET

SftBoxControlAlignConstants object.ControlAlign = Align;

VC++

enum SftBoxControlAlignConstants object->ControlAlign = Align;
void object->PutControlAlign(enum SftBoxControlAlignConstants Align);

C

HRESULT object->put_ControlAlign(enum SftBoxControlAlignConstants Align);

Delphi

object.ControlAlign := Align  : TOleEnum;

object

A SftBox object.

Align

Defines the control alignment during resizing of the control.

Align

Value

Description

controlAlignSftBoxTop

0

Keeps the top edge at the same location when the control resizes itself.

controlAlignSftBoxCenter

1

Keeps the center of the control at the same location when the control resizes itself.

controlAlignSftBoxBottom

2

Keeps 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.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com