VennDiagramBlock
ChartForgeX.VisualBlocks
A deterministic static Venn diagram for one to three sets.
Inheritance
- VisualBlock<VennDiagramBlock>
- VennDiagramBlock
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.
Returned or exposed by 35
- Extension method MermaidVennDocument.ToVennDiagramBlock
- Method MermaidVennRendering.ToVennDiagramBlock
- Extension method VennDiagramBlock.Accessibility
- Extension method VennDiagramBlock.HostOwnsFrame
- Extension method VennDiagramBlock.Options
- Extension method VennDiagramBlock.Padding
- Extension method VennDiagramBlock.RasterScale
- Extension method VennDiagramBlock.ShowCard
- Extension method VennDiagramBlock.Size
- Extension method VennDiagramBlock.Subtitle
- Extension method VennDiagramBlock.SvgColorVariables
- Extension method VennDiagramBlock.Theme
- Extension method VennDiagramBlock.ThemeMode
- Extension method VennDiagramBlock.Title
- Extension method VennDiagramBlock.TransparentBackground
- Method VennDiagramBlock.AddIntersection
- Method VennDiagramBlock.AddSet
- Method VennDiagramBlock.AddText
- Method VennDiagramBlock.Create
- Method VennDiagramBlock.Padding
- Method VennDiagramBlock.Size
- Method VennDiagramBlock.Theme
- Method VennDiagramBlockFluent.Accessibility
- Method VennDiagramBlockFluent.HostOwnsFrame
- Method VennDiagramBlockFluent.Options
- Method VennDiagramBlockFluent.Padding
- Method VennDiagramBlockFluent.RasterScale
- Method VennDiagramBlockFluent.ShowCard
- Method VennDiagramBlockFluent.Size
- Method VennDiagramBlockFluent.Subtitle
- Method VennDiagramBlockFluent.SvgColorVariables
- Method VennDiagramBlockFluent.Theme
- Method VennDiagramBlockFluent.ThemeMode
- Method VennDiagramBlockFluent.Title
- Method VennDiagramBlockFluent.TransparentBackground
Accepted by parameters 26
- Extension method VennDiagramBlock.Accessibility
- Extension method VennDiagramBlock.HostOwnsFrame
- Extension method VennDiagramBlock.Options
- Extension method VennDiagramBlock.Padding
- Extension method VennDiagramBlock.RasterScale
- Extension method VennDiagramBlock.ShowCard
- Extension method VennDiagramBlock.Size
- Extension method VennDiagramBlock.Subtitle
- Extension method VennDiagramBlock.SvgColorVariables
- Extension method VennDiagramBlock.Theme
- Extension method VennDiagramBlock.ThemeMode
- Extension method VennDiagramBlock.Title
- Extension method VennDiagramBlock.TransparentBackground
- Method VennDiagramBlockFluent.Accessibility
- Method VennDiagramBlockFluent.HostOwnsFrame
- Method VennDiagramBlockFluent.Options
- Method VennDiagramBlockFluent.Padding
- Method VennDiagramBlockFluent.RasterScale
- Method VennDiagramBlockFluent.ShowCard
- Method VennDiagramBlockFluent.Size
- Method VennDiagramBlockFluent.Subtitle
- Method VennDiagramBlockFluent.SvgColorVariables
- Method VennDiagramBlockFluent.Theme
- Method VennDiagramBlockFluent.ThemeMode
- Method VennDiagramBlockFluent.Title
- Method VennDiagramBlockFluent.TransparentBackground
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>
- label string? = null
- size double = 1
Returns
VennDiagramBlockpublic VennDiagramBlock AddSet(string id, string? label = null, double size = 10) #Adds a Venn set.
Parameters
- id string
- label string? = null
- size double = 10
Returns
VennDiagramBlockpublic 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>
- id string
- label string? = null
Returns
VennDiagramBlockpublic VennDiagramLayout MeasureLayout() #Measures the real circular intersections and their quantitative fit in the current frame.
Returns
VennDiagramLayoutInherited Methods
public VennDiagramBlock Padding(double padding) #Parameters
- padding double
Returns
VennDiagramBlockpublic VennDiagramBlock Padding(double left, double top, double right, double bottom) #Parameters
- left double
- top double
- right double
- bottom double
Returns
VennDiagramBlockpublic virtual RgbaImage RenderRgba() #Returns
RgbaImagepublic virtual string RenderSvg(string idScope) #Parameters
- idScope string
Returns
stringpublic VennDiagramBlock Size(int width, int height) #Parameters
- width int
- height int
Returns
VennDiagramBlockpublic VennDiagramBlock Theme(Action<VisualThemeBuilder> configure) #Parameters
- configure Action<VisualThemeBuilder>
Returns
VennDiagramBlockProperties
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.
Inherited Properties
public string Title { get; set; } #public string Subtitle { get; set; } #public VisualBlockOptions Options { get; } #FluentInlineExtension 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
- The instance.
- configure System.Action<ChartForgeX.Accessibility.VisualAccessibility>
- Configures the value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- configure System.Action<ChartForgeX.VisualBlocks.VisualBlockOptions>
- Configures the value.
public static VennDiagramBlock Padding(VennDiagramBlock vennDiagramBlock, ChartPadding value) #Sets VisualBlockOptions.Padding: Gets or sets the inner content padding.
Parameters
- vennDiagramBlock ChartForgeX.VisualBlocks.VennDiagramBlock
- The instance.
- value ChartForgeX.Primitives.ChartPadding
- The value.
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
- The instance.
- value int
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value ChartForgeX.Primitives.ChartSize
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value ChartForgeX.Themes.SvgColorVariables?
- The value.
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
- The instance.
- value ChartForgeX.Themes.VisualTheme
- The value.
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
- The instance.
- value ChartForgeX.ThemeMode
- The value.
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
- The instance.
- value string
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
((global::ChartForgeX.VisualBlocks.VisualBlock<global::ChartForgeX.VisualBlocks.VennDiagramBlock>)vennDiagramBlock).Options.TransparentBackground = value; vennDiagramBlock.TransparentBackground(value);