Search
TableNode.ConnectionStyle Property
See Also
 





Gets or sets a value indicating whether drawing a link from/to this table, should connect a row of the table, or the whole table as single entity.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public TableConnectionStyle ConnectionStyle { get; set; }

Visual Basic  Copy Code

Public Property ConnectionStyle As TableConnectionStyle

 Property Value

A member of the TableConnectionStyle enumeration. Initialized with the value of TableConnectionStyle.

 Remarks

There are three possible ways to relate tables to other nodes. This property specifies how users are allowed to create such relations:

  • Rows - relation ends are the rows of a table. A link connected to the table is connected to a particular row. This mode is convenient for database diagrams.
  • Table - relations target the table as a whole entity, and not any particular row. This mode is convenient for class diagrams.
  • Both - a mixed mode where links can target either a row of the table or the table itself.
Programmatically, links can be connected to a table in any way, regardless of the ConnectionStyle. ConnectionStyle value is considered only when end-users draw links to or from a table. To link to a table as an entity and not to a specific row, pass -1 as row argument of the CreateDiagramLink method.

 See Also