ComponentOne Sizer 8.0
Align Property (C1Elastic)

Returns or sets how the control aligns itself to its parent.

Syntax

[form!]C1Elastic.Align[ = AlignSettings ]

Remarks

The Align property is similar to Visual Basic's standard Align property, except for the following:

If you align an Elastic to the top of the form, then create another and align it to the left, your form will look like this:

If you align an Elastic to the left of the form, then create another and align it to the top, your form will look like this:

The difference is related to the order in which controls were created (ZOrder). You may change this at design time using Visual Basic's Format|Order command or at runtime using the ZOrder method.

These extra capabilities make the Align property extremely powerful. Use it with the AutoSizeChildren and FontResize properties to handle all resizing on any form.

Data Type

AlignSettings (Enumeration)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback