UseCaseRelationship Class

A relationship between two elements of a use case diagram: an association, an include, an extend or a generalization.

public sealed class UseCaseRelationship

Constructors

NameDescription
UseCaseRelationship(UseCaseDiagramElement, UseCaseDiagramElement, UseCaseRelationshipKind)Initializes a new instance of the UseCaseRelationship class.

UseCaseRelationship(UseCaseDiagramElement, UseCaseDiagramElement, UseCaseRelationshipKind)

UseCaseRelationship.cs

Initializes a new instance of the UseCaseRelationship class.

public UseCaseRelationship(UseCaseDiagramElement from, UseCaseDiagramElement to, UseCaseRelationshipKind kind = UseCaseRelationshipKind.Association)

Parameters

from UseCaseDiagramElement
The source.
to UseCaseDiagramElement
The target.
kind UseCaseRelationshipKind
The kind.

Properties

NameDescription
CssClassesGets the CSS classes of the relationship.
FromGets the source: the use case that includes or extends, or the specialized element of a generalization.
FromArrowHeadGets or sets the decoration of an association at UseCaseRelationship.From.
IdGets or sets the identifier of the relationship, which class and style statements of Mermaid use, or null for none.
KindGets or sets the kind of the relationship.
LabelGets or sets the text of an association, or null for none. An include or an extend shows its kind.
MinLengthGets or sets the minimum number of ranks the association spans. The default is 1.
StyleGets or sets the style of the line.
ToGets the target.
ToArrowHeadGets or sets the decoration of an association at UseCaseRelationship.To.

Gets the CSS classes of the relationship.

public IList<string> CssClasses { get; }

Property value

IList<string>

Gets the source: the use case that includes or extends, or the specialized element of a generalization.

public UseCaseDiagramElement From { get; }

Property value

UseCaseDiagramElement

Gets or sets the decoration of an association at UseCaseRelationship.From.

public UseCaseArrowHead FromArrowHead { get; set; }

Property value

UseCaseArrowHead

Gets or sets the identifier of the relationship, which class and style statements of Mermaid use, or null for none.

public string? Id { get; set; }

Property value

string?

Gets or sets the kind of the relationship.

public UseCaseRelationshipKind Kind { get; set; }

Gets or sets the text of an association, or null for none. An include or an extend shows its kind.

public DiagramText? Label { get; set; }

Property value

DiagramText?

Gets or sets the minimum number of ranks the association spans. The default is 1.

public int MinLength { get; set; }

Property value

int

Gets or sets the style of the line.

public DiagramStyle? Style { get; set; }

Property value

DiagramStyle?

Gets the target.

public UseCaseDiagramElement To { get; }

Property value

UseCaseDiagramElement

Gets or sets the decoration of an association at UseCaseRelationship.To.

public UseCaseArrowHead ToArrowHead { get; set; }

Property value

UseCaseArrowHead