TableGetAttribΒΆ
TableGetAttrib returns a matrix of cell attributes.
- rmAttrib = TableGetAttrib(hTable)
- rmAttrib = TableGetAttrib(hTable, rvSel)
Return Value
rmAttrib is a matrix with attribute values. Each element can be a combination of the following values:
Value
Meaning
TABLE_CLIPTEXT
Clipt text at the cell edge
TABLE_AUTOSIZE_WIDTH
Calculate the cell width automatically
TABLE_AUTOSIZE_HEIGHT
Calculate the cell height automatically
TABLE_WORDWRAP
Word Wrap at blank characters.
TABLE_SHRINKFONT
Shrinks the font size to fit the horizontal cell size.
Parameters
- hTable
Identifies the table object.
- rvSel
rvSel is a vector with four elements specifying a range of rows and columns:
Element
Description
rvSel[1]
Left column of selection
rvSel[2]
Top row of selection
rvSel[3]
Right column of selection
rvSel[4]
Bottom row of selection
The column and row numbering starts with 1. Left is smaller than right and top is smaller than bottom.
In the following example clipping is disabled for all cells:
rmAttrib = TableGetAttrib(hTable); rmAttrib = rmAttrib & ~TABLE_CLIPTEXT; TableSetAttrib(hTable, rmAttrib);
In the following example autosize is enabled for all cells:
rmAttrib = TableGetAttrib(hTable); rmAttrib = rmAttrib | (TABLE_AUTOSIZE_WIDTH | TABLE_AUTOSIZE_HEIGHT); TableSetAttrib(hTable, rmAttrib);
See also
id-1957019