Search
Table.HeaderRow Property
See Also
 



Gets or sets a value indicating whether a row is the header of a table section.

 Syntax

VB6  Copy Code

Public Property Get HeaderRow( _
    ByVal row As Long _
) As Boolean
Public Property Let HeaderRow( _
    ByVal row As Long, _
    ByVal value As Boolean _
)

C++  Copy Code

public:
bool get_HeaderRow (
    int row
)
void put_HeaderRow (
    int row,
    bool value
)

 Parameters

row
The 0-based index of the row.

 Property Value

A boolean value. The default is false.

 Remarks

Each header row defines a section of the table that includes all non-header rows after the header. Such sections can be expanded or collapsed, i.e. the rows included in them can be shown or hidden. This can be done interactively by pressing the +/- button displayed in header rows, or programmatically by setting the RowExpanded property. The TableSectionCollapsed and TableSectionExpanded events are raised when a user clicks the +/- button.

 Example

The following code defines two sections of table rows that can be collapsed and expanded back:

VB6  Copy Code

Private Sub fcx_TableCreated(ByVal table As FLOWCHARTLibCtl.ITableItem)

    table.caption = "class " + className
    table.RowsCount = methods + 1 + properties + 1
    table.HeaderRow(0) = True
    table.SetText 0, 0, "Methods"
    table.HeaderRow(methods + 1) = True
    table.SetText 0, methods + 1, "Properties"

End Sub

 See Also