GetCellFont
Retrieve the font of an individual cell
WTSupported in traditional Synergy on Windows
|
|
|
|
status = %AX_CALL(axlist_id, "GetCellFont", row, column, face_name, point_size, & rendition)
Return value
status
Returns true if successful, otherwise false. (n)
Arguments
axlist_id
The ID for the ActiveX Toolkit list. This ID can be retrieved with L_STATUS. (n)
row
The row number of the cell whose font is being retrieved. (n)
column
The column number of the cell whose font is being retrieved. (n)
face_name
The returned name of the Windows font. (a)
point_size
The returned size of the Windows font in points. (n)
rendition
The returned rendition. This is zero if no renditions are applied, or one or more of the following options, which can be combined using .BOR. or the vertical bar (|) operator: D_CELL_BOLD, D_CELL_ITALIC, D_CELL_UNDER (underlined). (n)
The GetCellFont method retrieves the font and rendition for a specified cell.
Examples
In the following example, the text in the fourth column of the current item is set to underline and bold. This does not affect any other font settings.
xcall l_status(listid, D_LAXCTRL, axctrl, D_LCURITM, curr) xcall ax_call(axctrl, "GetCellFont", curr, 4, fontname, ptsize, style) xcall ax_call(axctrl, "SetCellFont", curr, 4, fontname, ptsize, & (style .bor. D_CELL_BOLD .bor. D_CELL_UNDER))
The following example turns off italic for the text in the second column of the current item without affecting any other font settings.
xcall l_status(listid, D_LAXCTRL, axctrl, D_LCURITM, curr) xcall ax_call(axctrl, "GetCellFont", curr, 4, fontname, ptsize, style) xcall ax_call(axctrl, "SetCellFont", curr, 4, fontname, ptsize, & (style .band. (.bnot. D_CELL_ITALIC)))
See also
- SetCellFont method
- %AX_CALL routine