Search
DiagramBase.TableSectionExpanded Event
See Also
 





Raised when the user expands the rows of a table's section by clicking the [+] button in the section’s header row.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public event EventHandler<RowEventArgs> TableSectionExpanded

Visual Basic  Copy Code

Public Event TableSectionExpanded As EventHandler(Of RowEventArgs)

 Event Data

TableSectionExpanded event handlers receive an argument of type RowEventArgs. The following RowEventArgs members provide information relevant to the event:

Member name

Description

Table

The TableNode that contains the expanded rows.

RowIndex

Index of the header row of the expanded section.

 Remarks

A header row is a row whose Header property is enabled. Such rows display a [±] button which can be used to expand or collapse all rows below a header up to the next header. TableSectionExpanded is raised when a user clicks the [+] button, but not when Expanded is set to true programmatically.

 Example

The code below changes the color of the first cell of a header row when the table section defined via that row is expanded:

C#  Copy Code
void diagram_TableSectionExpanded(object sender, RowEventArgs e)
{
    e.Table[0, e.RowIndex].Brush = new MindFusion.Drawing.SolidBrush(Color.Blue);
}
Visual Basic  Copy Code
Private Sub Diagram_TableSectionExpanded(ByVal sender As Object, ByVal e As MindFusion.Diagramming.RowEventArgs)Handles Diagram.TableSectionExpanded
    e.Table(0, e.RowIndex).Brush = New MindFusion.Drawing.SolidBrush(Color.Blue)
End Sub

 See Also