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
Package: MindFusion.Diagramming
C# Copy Code |
---|
public event EventHandler<RowEventArgs> TableSectionExpanded |
Visual Basic Copy Code |
---|
Public Event TableSectionExpanded As EventHandler(Of RowEventArgs) |
TableSectionExpanded event handlers receive an argument of type RowEventArgs. The following RowEventArgs members provide information relevant to the event:
Member name | Description |
---|---|
The TableNode that contains the expanded rows. | |
Index of the header row of the expanded section. |
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.
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 |
NetDiagram Programmer's Guide | © 2023 MindFusion |