Purpose
Determines column alignment information which is being used for drawing.
Class
Type
Method
Syntax
<oBrowser>:GetColumnAlignment(
<symStyle>,
<oColumn>
) Æ iAlignment
Arguments
| <symStyle> | A value that indicates whether the alignment is to be determined for the column caption, the column values or for the column footer. The following values are supported: | 
| Value | Description | 
| #Caption | The alignment is determined for the column caption. | 
| #Data | The alignment is determined for the column values. | 
| #Footer | The alignment is determined for the column footer. | 
| Data Type: | Symbol | 
| <oColumn> | The column for which the alignment is to be determined. | 
| Data Type: | bDataColumn | 
Return Value
| iAlignment | The determined alignment. A combination of the the following values can be returned: | 
| Constant | Description | 
| BALIGN_AUTO | The default values for horizontal and vertical alignment are used. | 
| BALIGN_LEFT | Left justified alignment. | 
| BALIGN_RIGHT | Right justified alignment. | 
| BALIGN_CENTER | Horizontal centered alignment. | 
| BALIGN_TOP | Top justified alignment. | 
| BALIGN_BOTTOM | Bottom justified alignment. | 
| BALIGN_VCENTER | Vertical centered alignment. | 
If the value BALIGN_AUTO is returned then the horizontal alignment depends on the data type of the column values. Numeric values are right justified all other values are left justified aligned.
| Data Type: | Integer | 
Description
If the alignment is determined for the column caption,
1.it examines whether this column has a bBrowserColumn:CaptionView object defined for it and whether the alignment (see also bBrowserColumn:CaptionView:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
2.it examines whether this column has a bBrowserColumn:DataView object defined for it and whether the alignment (see also bBrowserColumn:DataView:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
3.it examines whether in the browser a bBrowser:CaptionView object is defined.
Ü If it is, the alignment (see also bBrowser:CaptionView:Alignment) from this object is returned.
4.Ü the alignment BALIGN_AUTO is returned.
If the alignment is determined for the column values,
1.it examines whether this column has a bBrowserColumn:DataView object defined for it and whether the alignment (see also bBrowserColumn:DataView:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
2.it examines whether in the browser a bBrowser:DataView object is defined and whether in this an alignment (see also bBrowser:DataView:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If it is, the alignment from this object is returned.
3.it examines whether the data type of the column is numeric.
Ü If it is, the alignment BALIGN_RIGHT is returned.
4.Ü the alignment BALIGN_AUTO is returned.
If the alignment is determined for the column footer,
1.it examines whether this column has a bBrowserColumn:FooterView object defined for it and whether the alignment (see also bBrowserColumn:FooterView:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If it is, this alignment is returned.
2.it examines whether this column has a bBrowserColumn:DataView object defined for it and whether the alignment (see also bBrowserColumn:DataView:Alignment) in this object IS NOT set to BALIGN_AUTO.
Ü If so, this alignment is returned.
3.it examines if in the browser a bBrowser:FooterView is defined object.
Ü If it is, the alignment (see also bBrowser:FooterView:Alignment) from this object is returned.
4.Ü the alignment BALIGN_AUTO is returned.
See Also
Page url: http://www.YOURSERVER.com/index.html?bbrowser_getcolumnalignment.htm