UseCaseRelationship Class
A relationship between two elements of a use case diagram: an association, an include, an extend or a generalization.
public sealed class UseCaseRelationshipConstructors
| Name | Description |
|---|---|
| UseCaseRelationship(UseCaseDiagramElement, UseCaseDiagramElement, UseCaseRelationshipKind) | Initializes a new instance of the UseCaseRelationship class. |
UseCaseRelationship(UseCaseDiagramElement, UseCaseDiagramElement, UseCaseRelationshipKind)
UseCaseRelationship.csInitializes a new instance of the UseCaseRelationship class.
public UseCaseRelationship(UseCaseDiagramElement from, UseCaseDiagramElement to, UseCaseRelationshipKind kind = UseCaseRelationshipKind.Association)Parameters
fromUseCaseDiagramElement- The source.
toUseCaseDiagramElement- The target.
kindUseCaseRelationshipKind- The kind.
Properties
| Name | Description |
|---|---|
| CssClasses | Gets the CSS classes of the relationship. |
| From | Gets the source: the use case that includes or extends, or the specialized element of a generalization. |
| FromArrowHead | Gets or sets the decoration of an association at UseCaseRelationship.From. |
| Id | Gets or sets the identifier of the relationship, which class and style statements of Mermaid use, or null for none. |
| Kind | Gets or sets the kind of the relationship. |
| Label | Gets or sets the text of an association, or null for none. An include or an extend shows its kind. |
| MinLength | Gets or sets the minimum number of ranks the association spans. The default is 1. |
| Style | Gets or sets the style of the line. |
| To | Gets the target. |
| ToArrowHead | Gets or sets the decoration of an association at UseCaseRelationship.To. |
CssClasses
UseCaseRelationship.csGets the CSS classes of the relationship.
Property value
Gets the source: the use case that includes or extends, or the specialized element of a generalization.
public UseCaseDiagramElement From { get; }Property value
FromArrowHead
UseCaseRelationship.csGets or sets the decoration of an association at UseCaseRelationship.From.
public UseCaseArrowHead FromArrowHead { get; set; }Property value
Gets or sets the kind of the relationship.
public UseCaseRelationshipKind Kind { get; set; }Property value
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
MinLength
UseCaseRelationship.csToArrowHead
UseCaseRelationship.csGets or sets the decoration of an association at UseCaseRelationship.To.
public UseCaseArrowHead ToArrowHead { get; set; }