The placement of a header cell's contents.

Usage

Set_Property(OLECtrlEntID, "OLE.HeaderAlignment[col; row]", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>Vertical AlignmentOptionVertical placement of a header cell's contentsCenter
<2>Horizontal AlignmentOptionHorizontal placement of a header cell's contentsLeft
<3>Image AlignmentOptionImage placement relative to a header cell's textLeft

Indices

IndexDescription
colIndex to an existing header column
rowIndex 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:

ValueAbbr.Description
TopTPlaces contents along the top of the header cell
CenterCPlaces contents in the vertical center of the header cell
BottomBPlaces contents along the bottom of the header cell

Possible values for horizontal alignment are:

ValueAbbr.Description
LeftLPlaces contents along the left side of the header cell
CenterCPlaces contents in the horizontal center of the header cell
RightBPlaces contents along the right side of the header cell

Possible values for image alignment are:

ValueAbbr.Description
LeftLPlaces image to the left of the text
RightRPlaces image to the right of the text
TopTPlaces image above the text
BottomBPlaces image below the text
WatermarkWPlaces 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")

See Also

HeaderPaddingCellAlignment

  • No labels