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 VennStyleRuleConstructors
| Name | Description |
|---|---|
| VennStyleRule(IEnumerable<string>, VennStyle) | Initializes a new instance of the VennStyleRule class. |
VennStyleRule(IEnumerable<string>, VennStyle)
VennStyleRule.csInitializes a new instance of the VennStyleRule class.
public VennStyleRule(IEnumerable<string> targets, VennStyle style)Parameters
targetsIEnumerable<string>- The identifiers of the sets of an area, or the identifier of a text. They are sorted in ordinal order, as Mermaid does.
styleVennStyle- The style.
Exceptions
ArgumentExceptiontargetsis empty or containsnull.ArgumentNullExceptionstyleisnull.
Properties
| Name | Description |
|---|---|
| Style | Gets or sets the style. |
| Targets | Gets the identifiers of the sets of the area, or the identifier of the text, sorted in ordinal order. |
Style
VennStyleRule.csTargets
VennStyleRule.csGets the identifiers of the sets of the area, or the identifier of the text, sorted in ordinal order.
public ReadOnlyCollection<string> Targets { get; }