ErSubgraph Class

A group of entities of an entity relationship diagram, drawn as a frame with a title. Its ErElement.Label is its title.

public sealed class ErSubgraph : ErElement
Inheritance
ErElement ErSubgraph

Constructors

NameDescription
ErSubgraph(string, DiagramText?)Initializes a new instance of the ErSubgraph class.

ErSubgraph(string, DiagramText?)

ErSubgraph.cs

Initializes a new instance of the ErSubgraph class.

public ErSubgraph(string id, DiagramText? title = null)

Parameters

id string
The identifier, unique in the diagram.
title DiagramText?
The title, or null to show the identifier.

Properties

NameDescription
DirectionGets or sets the direction of the content of the subgraph, or null for the direction of the diagram. It applies only when no relationship links an entity of the subgraph to an element outside of it.
EntitiesGets the entities of the subgraph. An entity of several subgraphs belongs to the innermost one.
SubgraphsGets the subgraphs nested in this one.

Direction

ErSubgraph.cs

Gets or sets the direction of the content of the subgraph, or null for the direction of the diagram. It applies only when no relationship links an entity of the subgraph to an element outside of it.

public DiagramDirection? Direction { get; set; }

Property value

DiagramDirection?

Gets the entities of the subgraph. An entity of several subgraphs belongs to the innermost one.

public IList<ErEntity> Entities { get; }

Property value

IList<ErEntity>

Subgraphs

ErSubgraph.cs

Gets the subgraphs nested in this one.

public IList<ErSubgraph> Subgraphs { get; }

Property value

IList<ErSubgraph>