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 VennTextNodeConstructors
| Name | Description |
|---|---|
| VennTextNode(IEnumerable<string>, string, string?) | Initializes a new instance of the VennTextNode class. |
VennTextNode(IEnumerable<string>, string, string?)
VennTextNode.csInitializes a new instance of the VennTextNode class.
public VennTextNode(IEnumerable<string> sets, string id, string? label = null)Parameters
setsIEnumerable<string>- The identifiers of the sets of the area that holds the text. They are sorted in ordinal order, as Mermaid does.
idstring- The identifier of the text, shown when it has no label; a style of this identifier sets its color.
labelstring?- The text shown, or
nullto show the identifier.
Exceptions
ArgumentExceptionsetsis empty or containsnull.ArgumentNullExceptionidisnull.
Properties
| Name | Description |
|---|---|
| Id | Gets or sets the identifier of the text, shown when it has no label. |
| Label | Gets or sets the text shown, or null to show the identifier. |
| Sets | Gets the identifiers of the sets of the area that holds the text, sorted in ordinal order. |
Label
VennTextNode.csSets
VennTextNode.csGets the identifiers of the sets of the area that holds the text, sorted in ordinal order.
public ReadOnlyCollection<string> Sets { get; }Property value
Methods
| Name | Description |
|---|---|
| ToString() | Returns the text shown. |