Search
Table.CellFont Property
See Also
 



Gets or sets the font used to render text inside the specified cell.

 Syntax

VB6  Copy Code

Public Property Get CellFont( _
    ByVal col As Long, _
    ByVal row As Long _
) As IFontDisp
Public Property Let CellFont( _
    ByVal col As Long, _
    ByVal row As Long, _
    ByVal value As IFontDisp _
)

C++  Copy Code

public:
IFontDisp* get_CellFont (
    int col,
    int row
)
void put_CellFont (
    int col,
    int row,
    IFontDisp* value
)

 Parameters

col
The 0-based index of the cell's column.
row
The 0-based index of the cell's row.

 Property Value

A font object. The default is null (Nothing in Visual Basic).

 Remarks

This property lets you set the font used to render text inside a cell. The property has the cell column as the first index and the cell row as the second index. If the font of a cell is null, FlowChartX uses the table's Font to render the cell's text.

 Example

The following VB code creates a Font object and assigns it to a cell.

VB6  Copy Code

Dim f As New StdFont
f.Bold = True
f.Name = "Times New Roman"
f.Size = 6
table.CellFont(0, 0) = f

 See Also