VennTextNode Class

A text placed inside an area of a VennDiagram: the texts of an area are laid out in a grid (Mermaid text).

public sealed class VennTextNode

Constructors

NameDescription
VennTextNode(IEnumerable<string>, string, string?)Initializes a new instance of the VennTextNode class.

VennTextNode(IEnumerable<string>, string, string?)

VennTextNode.cs

Initializes a new instance of the VennTextNode class.

public VennTextNode(IEnumerable<string> sets, string id, string? label = null)

Parameters

sets IEnumerable<string>
The identifiers of the sets of the area that holds the text. They are sorted in ordinal order, as Mermaid does.
id string
The identifier of the text, shown when it has no label; a style of this identifier sets its color.
label string?
The text shown, or null to show the identifier.

Exceptions

ArgumentException
sets is empty or contains null.
ArgumentNullException
id is null.

Properties

NameDescription
IdGets or sets the identifier of the text, shown when it has no label.
LabelGets or sets the text shown, or null to show the identifier.
SetsGets the identifiers of the sets of the area that holds the text, sorted in ordinal order.

Gets or sets the identifier of the text, shown when it has no label.

public string Id { get; set; }

Property value

string

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

public string? Label { get; set; }

Property value

string?

Gets the identifiers of the sets of the area that holds the text, sorted in ordinal order.

public ReadOnlyCollection<string> Sets { get; }

Methods

NameDescription
ToString()Returns the text shown.

ToString()

VennTextNode.cs

Returns the text shown.

public override string ToString()

Returns

string The label, or the identifier.