VennStyleRule Class

A style applied to an area or to a text of a VennDiagram (Mermaid style): the targets are the sets of an area, or the identifier of a text. The rules of the same targets are merged in order.

public sealed class VennStyleRule

Constructors

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

VennStyleRule(IEnumerable<string>, VennStyle)

VennStyleRule.cs

Initializes a new instance of the VennStyleRule class.

public VennStyleRule(IEnumerable<string> targets, VennStyle style)

Parameters

targets IEnumerable<string>
The identifiers of the sets of an area, or the identifier of a text. They are sorted in ordinal order, as Mermaid does.
style VennStyle
The style.

Exceptions

ArgumentException
targets is empty or contains null.
ArgumentNullException
style is null.

Properties

NameDescription
StyleGets or sets the style.
TargetsGets the identifiers of the sets of the area, or the identifier of the text, sorted in ordinal order.

Gets or sets the style.

public VennStyle Style { get; set; }

Property value

VennStyle

Gets the identifiers of the sets of the area, or the identifier of the text, sorted in ordinal order.

public ReadOnlyCollection<string> Targets { get; }