The placement of a header cell's contents.
Usage
Set_Property(OLECtrlEntID, "OLE.HeaderAlignment[col; row]", Array)
Values
Array has the following structure:
| Pos | Name | Type | Description | Default |
|---|---|---|---|---|
| <1> | Vertical Alignment | Option | Vertical placement of a header cell's contents | Center |
| <2> | Horizontal Alignment | Option | Horizontal placement of a header cell's contents | Left |
| <3> | Image Alignment | Option | Image placement relative to a header cell's text | Left |
Indices
| Index | Description |
|---|---|
| col | Index to an existing header column |
| row | Index to an existing header row |
Remarks
The HeaderAlignment property aligns text and images along any edge of a header cell. This multivalued property has three fields: vertical alignment, horizontal alignment, and Image Alignment. Possible values for vertical alignment are:
| Value | Abbr. | Description |
|---|---|---|
| Top | T | Places contents along the top of the header cell |
| Center | C | Places contents in the vertical center of the header cell |
| Bottom | B | Places contents along the bottom of the header cell |
Possible values for horizontal alignment are:
| Value | Abbr. | Description |
|---|---|---|
| Left | L | Places contents along the left side of the header cell |
| Center | C | Places contents in the horizontal center of the header cell |
| Right | B | Places contents along the right side of the header cell |
Possible values for image alignment are:
| Value | Abbr. | Description |
|---|---|---|
| Left | L | Places image to the left of the text |
| Right | R | Places image to the right of the text |
| Top | T | Places image above the text |
| Bottom | B | Places image below the text |
| Watermark | W | Places image behind the text and saturates the image so it does not obscure the text |
Example
// Align the caption along the top left sides of header cell (1,1) with a watermarked image Set_Property(@Window:".OLE_EDITTABLE", "OLE.HeaderAlignment[1; 1]", "Top":@FM:"Left":@FM:"Watermark")