TableAddFontΒΆ
TableAddFont adds a font to font list of a table object.
-
nFontIndex = TableAddFont(hTable, hFont)
Return Value
nFontIndex is the index of the font in font list. The index is used to set the font for the specified cells using the TableSetFontIndex function. .. us.params
Parameters
-
hTable
Identifies the table object.
-
hFont
hFont is the handle of a font object created with FontCreate.
Example
In the following example a new font is created, added to the font list, and used to display the cell text of the first row.
hFont = FontDialog();
idx = TableAddFont(hTable, hFont);
FontDestroy(hFont);
rvSize = TableGetSize(hTable);
rmIndex = zeros(1, rvSize[2]) + idx;
rvSel = [1, 1, rvSize[2], 1];
TableSetFontIndex(hTable, rmIndex, rvSel);
id-1855002