Tables are diagram nodes that can contain multiple cells and can be related to other nodes through their rows.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public class TableNode : DiagramNode, InplaceEditable |
Visual Basic
![]() |
---|
Public Class TableNode |
Tables in flow diagrams are represented by instances of the TableNode class.
Tables consist of Cell instances distributed across rows and columns. Number of rows and columns can be set with the RowCount and ColumnCount properties. The width of the columns is set with ColumnWidth property and the height of the rows with the RowHeight property.
The structure of a table can be dynamically changed by adding and deleting rows and columns. This can be done with the AddColumn and AddRow methods as well as with the InsertColumn, InsertRow and RedimTable methods. DeleteRow and DeleteColumn methods delete existing rows and columns.
Table cells contain Text, displayed as specified through CellTextBrush. A table can also have a caption, whose text is set by the Caption property. The height of the caption of the text is specified by CaptionHeight.
To display a text box that lets users edit the table caption or the text of a cell, call the BeginEdit method of Diagram. Call EndEdit to exit the in-place editing mode. If the diagram's AllowInplaceEdit property is enabled, users can double-click the table caption bar or a cell in order to edit their text.
The interior of tables is filled using their Brush property. The color of the table and cell borders can be set by using the Stroke property. The table caption bar is painted using the CaptionBackBrush brush.
The rectangle, which a table occupies, is accessible with the Bounds property. Rows and columns that build the table are stored and accessed by means of the Rows and Columns collections.
System.Object
Windows.UI.Xaml.DependencyObject
Windows.UI.Xaml.UIElement
Windows.UI.Xaml.FrameworkElement
Windows.UI.Xaml.Controls.Control
Windows.UI.Xaml.Controls.ContentControl
MindFusion.Diagramming.DiagramItem
MindFusion.Diagramming.DiagramNode
MindFusion.Diagramming.TableNode