Search
Diagram.TableConnectionStyle Property
See Also
 






Gets or sets a value indicating whether drawing an arrow between tables should link rows of those tables, or the tables as whole entities.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public TableConnectionStyle TableConnectionStyle { get; set; }

Visual Basic  Copy Code

Public Property TableConnectionStyle As TableConnectionStyle

 Property Value

A member of the TableConnectionStyle enumeration. The default is Rows.

 Remarks

The value of TableConnectionStyle is used to initialize the ConnectionStyle property of new tables. 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 tables as whole entities, and not any particular row. This mode is convenient for class diagrams.
  • Both  a mixed mode where links can target either a row of a table or the table itself.

Programmatically, links can be connected to a table in any way, regardless of the table's ConnectionStyle. The value of ConnectionStyle 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