Skip to content
ChartForgeX
Class

VennDiagramBlock

ChartForgeX.VisualBlocks

Namespace
ChartForgeX.VisualBlocks
Assembly
ChartForgeX
Modifiers
sealed

A deterministic static Venn diagram for one to three sets.

Inheritance

Usage

Explore 61 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 26

Constructors

public VennDiagramBlock() #

Methods

public VennDiagramBlock AddIntersection(IEnumerable<string> setIds, string? label = null, double size = 1) #

Adds an intersection between two or three sets.

Parameters

setIds System.Collections.Generic.IEnumerable<string> required
label string? = null optional
size double = 1 optional
public VennDiagramBlock AddSet(string id, string? label = null, double size = 10) #

Adds a Venn set.

Parameters

id string required
label string? = null optional
size double = 10 optional
public VennDiagramBlock AddText(IEnumerable<string> setIds, string id, string? label = null) #

Adds an extra text label for a set or intersection.

Parameters

setIds System.Collections.Generic.IEnumerable<string> required
id string required
label string? = null optional
public static VennDiagramBlock Create() #

Creates a Venn diagram block.

public VennDiagramLayout MeasureLayout() #

Measures the real circular intersections and their quantitative fit in the current frame.

Properties

public IReadOnlyList<VennSet> Sets { get; } #

Gets Venn sets in source/render order.

public IReadOnlyList<VennIntersection> Intersections { get; } #

Gets declared set intersections.

public IReadOnlyList<VennTextNode> TextNodes { get; } #

Gets free-form labels attached to sets or intersections.

public override string AccessibleName { get; } #

Gets a concise accessibility label.

Extension Methods

public static VennDiagramBlock Accessibility(VennDiagramBlock vennDiagramBlock, Action<VisualAccessibility> configure) #

Configures VisualBlockOptions.Accessibility in place: Gets the text alternative, language, and decorative metadata used by static exports.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
configure System.Action<ChartForgeX.Accessibility.VisualAccessibility> required
Configures the value.

Returns

VennDiagramBlock The same instance.
public static VennDiagramBlock HostOwnsFrame(VennDiagramBlock vennDiagramBlock, bool value = true) #

Sets VisualBlockOptions.HostOwnsFrame: Gets or sets whether the host owns the frame, removing the surface and outer padding.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                         // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.HostOwnsFrame = value;    vennDiagramBlock.HostOwnsFrame(value);
public static VennDiagramBlock Options(VennDiagramBlock vennDiagramBlock, Action<VisualBlockOptions> configure) #

Configures VisualBlock<VennDiagramBlock>.Options in place: Gets shared rendering options.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
configure System.Action<ChartForgeX.VisualBlocks.VisualBlockOptions> required
Configures the value.

Returns

VennDiagramBlock The same instance.
public static VennDiagramBlock Padding(VennDiagramBlock vennDiagramBlock, ChartPadding value) #

Sets VisualBlockOptions.Padding: Gets or sets the inner content padding.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value ChartForgeX.Primitives.ChartPadding required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                   // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.Padding = value;    vennDiagramBlock.Padding(value);
public static VennDiagramBlock RasterScale(VennDiagramBlock vennDiagramBlock, int value) #

Sets VisualBlockOptions.RasterScale: Gets or sets the output pixel multiplier used by PNG exports.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value int required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                       // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.RasterScale = value;    vennDiagramBlock.RasterScale(value);
public static VennDiagramBlock ShowCard(VennDiagramBlock vennDiagramBlock, bool value = true) #

Sets VisualBlockOptions.ShowCard: Gets or sets whether the outer card surface should be rendered.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                    // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.ShowCard = value;    vennDiagramBlock.ShowCard(value);
public static VennDiagramBlock Size(VennDiagramBlock vennDiagramBlock, ChartSize value) #

Sets VisualBlockOptions.Size: Gets or sets the rendered block size in pixels.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value ChartForgeX.Primitives.ChartSize required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.Size = value;    vennDiagramBlock.Size(value);
public static VennDiagramBlock Subtitle(VennDiagramBlock vennDiagramBlock, string value) #

Sets VisualBlock<VennDiagramBlock>.Subtitle: Gets or sets the block subtitle.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value string required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::ChartForgeX.VisualBlocks.VennDiagramBlock { Subtitle = value };    vennDiagramBlock.Subtitle(value);
public static VennDiagramBlock SvgColorVariables(VennDiagramBlock vennDiagramBlock, SvgColorVariables? value) #

Sets VisualBlockOptions.SvgColorVariables: Gets or sets the CSS custom properties SVG output writes for theme colours, matched by colour value (see SvgColorVariables.Apply), for example SvgColorVariables.SharedRoles of this theme and mode. Null (the default) writes literal colours; PNG output always does.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value ChartForgeX.Themes.SvgColorVariables? required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                             // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.SvgColorVariables = value;    vennDiagramBlock.SvgColorVariables(value);
public static VennDiagramBlock Theme(VennDiagramBlock vennDiagramBlock, VisualTheme value) #

Sets VisualBlockOptions.Theme: Gets or sets the visual theme used by renderers.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value ChartForgeX.Themes.VisualTheme required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                 // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.Theme = value;    vennDiagramBlock.Theme(value);
public static VennDiagramBlock ThemeMode(VennDiagramBlock vennDiagramBlock, ThemeMode value) #

Sets VisualBlockOptions.ThemeMode: Gets or sets the explicit mode of the shared theme.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value ChartForgeX.ThemeMode required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                     // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.ThemeMode = value;    vennDiagramBlock.ThemeMode(value);
public static VennDiagramBlock Title(VennDiagramBlock vennDiagramBlock, string value) #

Sets VisualBlock<VennDiagramBlock>.Title: Gets or sets the block title.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value string required
The value.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::ChartForgeX.VisualBlocks.VennDiagramBlock { Title = value };    vennDiagramBlock.Title(value);
public static VennDiagramBlock TransparentBackground(VennDiagramBlock vennDiagramBlock, bool value = true) #

Sets VisualBlockOptions.TransparentBackground: Gets or sets whether the full background should stay transparent.

Parameters

vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock required
The instance.
value bool = true optional
The value; true when omitted.

Returns

VennDiagramBlock The same instance.

Examples

// C# initializer or property                                                                                                                                 // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.TransparentBackground = value;    vennDiagramBlock.TransparentBackground(value);