KanbanCard Class

A card of a kanban board: a task, with its assignee, its ticket and its priority.

public sealed class KanbanCard

Constructors

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

KanbanCard(string, DiagramText?)

KanbanCard.cs

Initializes a new instance of the KanbanCard class.

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

Parameters

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

Properties

NameDescription
AssignedGets or sets the person the task is assigned to, shown on the bottom right, or null for none.
CssClassesGets the CSS classes, written to the SVG.
IdGets the identifier.
LabelGets or sets the text, or null to show the identifier.
PriorityGets or sets the priority, shown as a colored stripe on the left, or null for none.
TicketGets or sets the ticket of the task, shown on the bottom left, or null for none.

Gets or sets the person the task is assigned to, shown on the bottom right, or null for none.

public string? Assigned { get; set; }

Property value

string?

CssClasses

KanbanCard.cs

Gets the CSS classes, written to the SVG.

public IList<string> CssClasses { get; }

Property value

IList<string>

Gets the identifier.

public string Id { get; }

Property value

string

Gets or sets the text, or null to show the identifier.

public DiagramText? Label { get; set; }

Property value

DiagramText?

Gets or sets the priority, shown as a colored stripe on the left, or null for none.

public KanbanPriority? Priority { get; set; }

Property value

KanbanPriority?

Gets or sets the ticket of the task, shown on the bottom left, or null for none.

public string? Ticket { get; set; }

Property value

string?

Methods

NameDescription
ToString()Returns the identifier.

ToString()

KanbanCard.cs

Returns the identifier.

public override string ToString()

Returns

string The identifier.