The placement of a cell's contents.
Usage
Set_Property(OLECtrlEntID, "OLE.CellAlignment[field; record]", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Vertical Alignment | Option | Vertical placement of a cell's contents | Center |
<2> | Horizontal Alignment | Option | Horizontal placement of a cell's contents | Left |
<3> | Image Alignment | Option | Image placement relative to a cell's text | Left |
Indices
Index | Description |
---|---|
field | Index to an existing field |
record | Index to an existing record |
Remarks
The CellAlignment property aligns text and images along any edge of a 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 cell |
Center | C | Places contents in the vertical center of the cell |
Bottom | B | Places contents along the bottom of the cell |
Possible values for horizontal alignment are:
Value | Abbr. | Description |
---|---|---|
Left | L | Places contents along the left side of the cell |
Center | C | Places contents in the horizontal center of the cell |
Right | R | Places contents along the right side of the 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
The following example demonstrates top-left alignment with a watermarked image:
* Align the caption along the top left sides of cell (1,1) with a watermarked image Set_Property(@Window:".OLE_EDITTABLE", "OLE.CellAlignment[1; 1]", "Top":@FM:"Left":@FM:"Watermark")