VennStyle Class

The style of an area or of a text of a VennDiagram (Mermaid style). A null property keeps the default.

public sealed class VennStyle : IEquatable<VennStyle>
Implements

Constructors

NameDescription
VennStyle()

VennStyle()

public VennStyle()

No documentation is available.

Properties

NameDescription
FillGets the fill: the color of a circle, or the fill of an overlap, which is otherwise transparent (CSS fill).
FillOpacityGets the opacity of the fill of a circle, from 0 to 1 (CSS fill-opacity). The default is 0.1.
IsEmptyGets a value indicating whether no property is set.
StrokeGets the color of the outline of a circle (CSS stroke). The default is its fill.
StrokeWidthGets the width of the outline of a circle (CSS stroke-width).
TextColorGets the color of the label of an area, or of a text (CSS color).

Gets the fill: the color of a circle, or the fill of an overlap, which is otherwise transparent (CSS fill).

public SceneColor? Fill { get; init; }

Property value

SceneColor?

FillOpacity

VennStyle.cs

Gets the opacity of the fill of a circle, from 0 to 1 (CSS fill-opacity). The default is 0.1.

public double? FillOpacity { get; init; }

Property value

double?

Gets a value indicating whether no property is set.

public bool IsEmpty { get; }

Property value

bool

Gets the color of the outline of a circle (CSS stroke). The default is its fill.

public SceneColor? Stroke { get; init; }

Property value

SceneColor?

StrokeWidth

VennStyle.cs

Gets the width of the outline of a circle (CSS stroke-width).

public double? StrokeWidth { get; init; }

Property value

double?

TextColor

VennStyle.cs

Gets the color of the label of an area, or of a text (CSS color).

public SceneColor? TextColor { get; init; }

Property value

SceneColor?

Methods

NameDescription
Equals(VennStyle?)
Equals(object?)
GetHashCode()
Merge(VennStyle?)Returns this style, with the properties that another style sets replaced.
ToString()

Equals overloads

Equals(VennStyle?)

public bool Equals(VennStyle? other)
Parameters
other VennStyle?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Merge(VennStyle?)

VennStyle.cs

Returns this style, with the properties that another style sets replaced.

public VennStyle Merge(VennStyle? other)

Parameters

other VennStyle?
The other style, or null.

Returns

VennStyle The merged style.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(VennStyle?, VennStyle?)
operator !=(VennStyle?, VennStyle?)

operator ==(VennStyle?, VennStyle?)

public static bool operator ==(VennStyle? left, VennStyle? right)

Parameters

left VennStyle?
right VennStyle?

Returns

bool

No documentation is available.

operator !=(VennStyle?, VennStyle?)

public static bool operator !=(VennStyle? left, VennStyle? right)

Parameters

left VennStyle?
right VennStyle?

Returns

bool

No documentation is available.