UseCaseActor Class

An actor of a use case diagram: a person or a system that takes part in use cases, drawn as a figure with its name below.

public sealed class UseCaseActor : UseCaseDiagramElement
Inheritance
UseCaseDiagramElement UseCaseActor

Constructors

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

UseCaseActor(string, DiagramText?)

UseCaseActor.cs

Initializes a new instance of the UseCaseActor class.

public UseCaseActor(string id, DiagramText? label = null)

Parameters

id string
The identifier, which is shown when there is no label.
label DiagramText?
The name shown, or null to show the identifier.

Properties

NameDescription
IsBusinessGets or sets a value that indicates whether the actor is a business actor, drawn with a slash across its head. An UseCaseActorKind.Awesome actor cannot be one.
KindGets or sets how the figure is drawn.
StereotypeGets or sets the stereotype, shown between guillemets above the name, or null for none.

IsBusiness

UseCaseActor.cs

Gets or sets a value that indicates whether the actor is a business actor, drawn with a slash across its head. An UseCaseActorKind.Awesome actor cannot be one.

public bool IsBusiness { get; set; }

Property value

bool

Gets or sets how the figure is drawn.

public UseCaseActorKind Kind { get; set; }

Property value

UseCaseActorKind

Stereotype

UseCaseActor.cs

Gets or sets the stereotype, shown between guillemets above the name, or null for none.

public string? Stereotype { get; set; }

Property value

string?