ComponentOne VSFlexGrid 8.0
ColAlignment Property

Returns or sets the alignment of the given column.

Syntax

[form!]VSFlexGrid.ColAlignment(Col As Long)[ = AlignmentSettings ]

Remarks

Valid settings for the ColAlignment property are:

 

Constant

Value

FlexAlignLeftTop

0

FlexAlignLeftCenter

1

FlexAlignLeftBottom

2

FlexAlignCenterTop

3

FlexAlignCenterCenter

4

FlexAlignCenterBottom

5

FlexAlignRightTop

6

FlexAlignRightCenter

7

FlexAlignRightBottom

8

FlexAlignGeneral

9

 

The flexAlignGeneral setting aligns text to the left and numbers and dates to the right.

The ColAlignment property affects all cells in the specified column, including those in fixed rows. You may override this setting for fixed cells using the FixedAlignment property. You may override it for individual cells using the Cell(flexcpAlignment) property.

This example sets the alignment of the third column to the right and bottom

   fg.ColAlignment(2) = flexAlignRightBottom

You may set the alignment of pictures in cells using the CellPictureAlignment or Cell(flexcpPictureAlignment) properties.

When setting this property, the Col parameter should be set to a value between zero and Cols - 1 to set the alignment of a given column, or to -1 to set the alignment of all columns.

Data Type

AlignmentSettings (Enumeration)

 

 


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

Product Support Forum  |  Documentation Feedback