OverviewExamples
Sets the font of a cell in a grid object.
(string) The name of the grid object.
(number) The zero-based index of the cell's row.
(number) The zero-based index of the cell's column.
(table) A table of font information. Pass nil to use the default grid font. This is an optional argument and if omitted will default to nil. All values are optional and if omitted, the default will be used.
KEY |
TYPE |
DESCRIPTION |
|||||||||||||||||||||||||||||||||
FaceName |
string |
The face name such as "Arial" or "Verdana". |
|||||||||||||||||||||||||||||||||
Height |
number |
The font height (in points). |
|||||||||||||||||||||||||||||||||
Weight |
number |
The weight of the font (how 'dark' the text will appear):
|
|||||||||||||||||||||||||||||||||
Italic |
boolean |
True if the font should be set to italic, false if it should not be. |
|||||||||||||||||||||||||||||||||
Underline |
boolean |
True if the it should be underlined, false if it should not be. |
(boolean) Whether the grid should be automatically redrawn after the operation. Usually you will want to set this to true. However there may be times when you want to perform a lot of grid actions and delay the redraw until later. This is an optional argument. If omitted it will default to true.
VALUE |
DESCRIPTION |
true |
Automatically redraw the grid after the operation. (Default) |
false |
Delay the redraw until later. |
Nothing. You can use Application.GetLastError to determine whether this action failed, and why.
See also: Related Actions