HtmlForgeX

API Reference

Class

VisNetworkEdgeOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents comprehensive configuration options for an edge in VisNetwork.

Inheritance

  • Object
  • VisNetworkEdgeOptions

Constructors

public VisNetworkEdgeOptions() #

Methods

WithArrows 2 overloads
public VisNetworkEdgeOptions WithArrows(Action<VisNetworkArrowOptions> configure) #
Returns: VisNetworkEdgeOptions

Configures the arrows.

Parameters

arrows HtmlForgeX.VisNetworkArrowOptions requiredposition: 0
WithArrows(System.Action{HtmlForgeX.VisNetworkArrowOptions} configure) #

Configures the arrows.

Parameters

configure System.Action{HtmlForgeX.VisNetworkArrowOptions} required
public VisNetworkEdgeOptions WithArrowStrikethrough(Boolean strikethrough = true) #
Returns: VisNetworkEdgeOptions

Configures the arrow strikethrough.

Parameters

strikethrough System.Boolean = true optionalposition: 0
WithChosen 2 overloads
public VisNetworkEdgeOptions WithChosen(VisNetworkChosenEdgeOptions chosenOptions) #
Returns: VisNetworkEdgeOptions

Configures the chosen.

Parameters

enabled System.Boolean = true requiredposition: 0
WithChosen(HtmlForgeX.VisNetworkChosenEdgeOptions chosenOptions) #

Configures the chosen.

Parameters

chosenOptions HtmlForgeX.VisNetworkChosenEdgeOptions required
WithColor 4 overloads
public VisNetworkEdgeOptions WithColor(Action<VisNetworkAdvancedColorOptions> configure) #
Returns: VisNetworkEdgeOptions

Configures the color.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
public VisNetworkEdgeOptions WithColor(String color) #
Returns: VisNetworkEdgeOptions

Configures the color.

Parameters

color System.String requiredposition: 0
WithColor(HtmlForgeX.VisNetworkAdvancedColorOptions colorOptions) #

Configures the color using advanced color options.

Parameters

colorOptions HtmlForgeX.VisNetworkAdvancedColorOptions required
WithColor(System.Action{HtmlForgeX.VisNetworkAdvancedColorOptions} configure) #

Configures the color using advanced color options.

Parameters

configure System.Action{HtmlForgeX.VisNetworkAdvancedColorOptions} required
public VisNetworkEdgeOptions WithConnection(Object from, Object to) #
Returns: VisNetworkEdgeOptions

Configures the connection.

Parameters

from System.Object requiredposition: 0
to System.Object requiredposition: 1
WithDashes 3 overloads
public VisNetworkEdgeOptions WithDashes(VisNetworkDashPattern pattern) #
Returns: VisNetworkEdgeOptions

Enables or disables dashed lines for the edge.

Parameters

enabled System.Boolean = true requiredposition: 0
True to enable dashed lines, false for solid lines

Returns

The edge options for method chaining

public VisNetworkEdgeOptions WithDashes(params Int32[] pattern) #
Returns: VisNetworkEdgeOptions

Sets a custom dash pattern for the edge line.

Parameters

pattern System.Int32[] requiredposition: 0
An array of integers representing dash and gap lengths

Returns

The edge options for method chaining

WithDashes(HtmlForgeX.VisNetworkDashPattern pattern) #

Sets a predefined dash pattern for the edge line.

Parameters

pattern HtmlForgeX.VisNetworkDashPattern required
The dash pattern to use

Returns

The edge options for method chaining

public VisNetworkEdgeOptions WithEndPointOffset(Action<VisNetworkEndPointOffset> configure) #
Returns: VisNetworkEdgeOptions

Configures the end point offset.

Parameters

configure System.Action{HtmlForgeX.VisNetworkEndPointOffset} requiredposition: 0
public VisNetworkEdgeOptions WithFont(Action<VisNetworkFontOptions> configure) #
Returns: VisNetworkEdgeOptions

Configures the font.

Parameters

configure System.Action{HtmlForgeX.VisNetworkFontOptions} requiredposition: 0
WithGradientColor 2 overloads
public VisNetworkEdgeOptions WithGradientColor(RGBColor fromColor, RGBColor toColor) #
Returns: VisNetworkEdgeOptions

Sets a gradient color for the edge that transitions from one color to another. The gradient follows the edge direction from source to target.

Parameters

fromColor HtmlForgeX.RGBColor requiredposition: 0
The color at the start of the edge (source node)
toColor HtmlForgeX.RGBColor requiredposition: 1
The color at the end of the edge (target node)

Returns

The edge options for method chaining

public VisNetworkEdgeOptions WithGradientColor(String fromColor, String toColor) #
Returns: VisNetworkEdgeOptions

Sets a gradient color for the edge using color strings.

Parameters

fromColor System.String requiredposition: 0
The color at the start of the edge (source node)
toColor System.String requiredposition: 1
The color at the end of the edge (target node)

Returns

The edge options for method chaining

public VisNetworkEdgeOptions WithHidden(Boolean hidden = true) #
Returns: VisNetworkEdgeOptions

Configures the hidden.

Parameters

hidden System.Boolean = true optionalposition: 0
public VisNetworkEdgeOptions WithHtmlLabel(String htmlLabel) #
Returns: VisNetworkEdgeOptions

Sets an HTML-formatted label with multi-line support. Automatically enables HTML multi-line mode.

Parameters

htmlLabel System.String requiredposition: 0
The HTML-formatted label content

Returns

The edge options for method chaining

public VisNetworkEdgeOptions WithId(Object id) #
Returns: VisNetworkEdgeOptions

Configures the id.

Parameters

id System.Object requiredposition: 0
public VisNetworkEdgeOptions WithLabel(String label) #
Returns: VisNetworkEdgeOptions

Configures the label.

Parameters

label System.String requiredposition: 0
public VisNetworkEdgeOptions WithLabelHighlightBold(Boolean highlightBold = true) #
Returns: VisNetworkEdgeOptions

Configures the label highlight bold.

Parameters

highlightBold System.Boolean = true optionalposition: 0
public VisNetworkEdgeOptions WithLength(Double length) #
Returns: VisNetworkEdgeOptions

Configures the length.

Parameters

length System.Double requiredposition: 0
public VisNetworkEdgeOptions WithMarkdownLabel(String markdownLabel) #
Returns: VisNetworkEdgeOptions

Sets a Markdown-formatted label with multi-line support. Automatically enables Markdown multi-line mode.

Parameters

markdownLabel System.String requiredposition: 0
The Markdown-formatted label content

Returns

The edge options for method chaining

public VisNetworkEdgeOptions WithOption(String key, Object value) #
Returns: VisNetworkEdgeOptions

Sets a custom option that is not yet represented as a typed property.

Parameters

key System.String requiredposition: 0
value System.Object requiredposition: 1
public VisNetworkEdgeOptions WithPhysics(Boolean physics = true) #
Returns: VisNetworkEdgeOptions

Configures the physics.

Parameters

physics System.Boolean = true optionalposition: 0
public VisNetworkEdgeOptions WithScaling(Action<VisNetworkScalingOptions> configure) #
Returns: VisNetworkEdgeOptions

Configures the scaling.

Parameters

configure System.Action{HtmlForgeX.VisNetworkScalingOptions} requiredposition: 0
public VisNetworkEdgeOptions WithSelfReference(Action<VisNetworkSelfReferenceOptions> configure) #
Returns: VisNetworkEdgeOptions

Configures the self reference.

Parameters

configure System.Action{HtmlForgeX.VisNetworkSelfReferenceOptions} requiredposition: 0
public VisNetworkEdgeOptions WithSelfReferenceSize(Double size) #
Returns: VisNetworkEdgeOptions

Configures the self reference size.

Parameters

size System.Double requiredposition: 0
WithShadow 2 overloads
public VisNetworkEdgeOptions WithShadow(VisNetworkShadowOptions shadowOptions) #
Returns: VisNetworkEdgeOptions

Configures the shadow.

Parameters

enabled System.Boolean = true requiredposition: 0
WithShadow(HtmlForgeX.VisNetworkShadowOptions shadowOptions) #

Configures the shadow.

Parameters

shadowOptions HtmlForgeX.VisNetworkShadowOptions required
WithSmooth 3 overloads
public VisNetworkEdgeOptions WithSmooth(Action<VisNetworkSmoothOptions> configure) #
Returns: VisNetworkEdgeOptions

Configures the smooth.

Parameters

enabled System.Boolean = true requiredposition: 0
WithSmooth(HtmlForgeX.VisNetworkSmoothOptions smoothOptions) #

Configures the smooth.

Parameters

smoothOptions HtmlForgeX.VisNetworkSmoothOptions required
WithSmooth(System.Action{HtmlForgeX.VisNetworkSmoothOptions} configure) #

Configures the smooth.

Parameters

configure System.Action{HtmlForgeX.VisNetworkSmoothOptions} required
public VisNetworkEdgeOptions WithTitle(String title) #
Returns: VisNetworkEdgeOptions

Configures the title.

Parameters

title System.String requiredposition: 0
public VisNetworkEdgeOptions WithValue(Double value) #
Returns: VisNetworkEdgeOptions

Configures the value.

Parameters

value System.Double requiredposition: 0
public VisNetworkEdgeOptions WithWidth(Double width, Nullable<Double> selectionWidth = null, Nullable<Double> hoverWidth = null) #
Returns: VisNetworkEdgeOptions

Configures the width.

Parameters

width System.Double requiredposition: 0
selectionWidth System.Nullable{System.Double} = null optionalposition: 1
hoverWidth System.Nullable{System.Double} = null optionalposition: 2
public VisNetworkEdgeOptions WithWidthConstraint(Nullable<Double> maximum = null) #
Returns: VisNetworkEdgeOptions

Configures the width constraint.

Parameters

maximum System.Nullable{System.Double} = null optionalposition: 0

Properties

public Object Id { get; set; } #
JsonPropertyName("id")

Gets or sets the id.

public Object From { get; set; } #
JsonPropertyName("from")

Gets or sets the from.

public Object To { get; set; } #
JsonPropertyName("to")

Gets or sets the to.

public String Label { get; set; } #
JsonPropertyName("label") JsonIgnore(Condition = 3)

Gets or sets the label.

public String Title { get; set; } #
JsonPropertyName("title") JsonIgnore(Condition = 3)

Gets or sets the title.

public Nullable<Double> Value { get; set; } #
JsonPropertyName("value") JsonIgnore(Condition = 3)

Gets or sets the value.

public Nullable<Double> Length { get; set; } #
JsonPropertyName("length") JsonIgnore(Condition = 3)

Gets or sets the length.

public Nullable<Double> Width { get; set; } #
JsonPropertyName("width") JsonIgnore(Condition = 3)

Gets or sets the width.

public Object WidthConstraint { get; set; } #
JsonPropertyName("widthConstraint") JsonIgnore(Condition = 3)

Gets or sets the width constraint.

public Nullable<Double> SelectionWidth { get; set; } #
JsonPropertyName("selectionWidth") JsonIgnore(Condition = 3)

Gets or sets the selection width.

public Object Arrows { get; set; } #
JsonPropertyName("arrows") JsonIgnore(Condition = 3)

Gets or sets the arrows.

public Nullable<Boolean> ArrowStrikethrough { get; set; } #
JsonPropertyName("arrowStrikethrough") JsonIgnore(Condition = 3)

Gets or sets the arrow strikethrough.

public Object Chosen { get; set; } #
JsonPropertyName("chosen") JsonIgnore(Condition = 3)

Gets or sets the chosen.

public Object Color { get; set; } #
JsonPropertyName("color") JsonIgnore(Condition = 3)

Gets or sets the color.

public Object Dashes { get; set; } #
JsonPropertyName("dashes") JsonIgnore(Condition = 3)

Gets or sets the dashes.

public VisNetworkFontOptions Font { get; set; } #
JsonPropertyName("font") JsonIgnore(Condition = 3)

Gets or sets the font.

public Nullable<Boolean> Hidden { get; set; } #
JsonPropertyName("hidden") JsonIgnore(Condition = 3)

Gets or sets the hidden.

public Nullable<Double> HoverWidth { get; set; } #
JsonPropertyName("hoverWidth") JsonIgnore(Condition = 3)

Gets or sets the hover width.

public Nullable<Boolean> LabelHighlightBold { get; set; } #
JsonPropertyName("labelHighlightBold") JsonIgnore(Condition = 3)

Gets or sets the label highlight bold.

public Nullable<Boolean> Physics { get; set; } #
JsonPropertyName("physics") JsonIgnore(Condition = 3)

Gets or sets the physics.

public VisNetworkScalingOptions Scaling { get; set; } #
JsonPropertyName("scaling") JsonIgnore(Condition = 3)

Gets or sets the scaling.

public Nullable<Double> SelfReferenceSize { get; set; } #
JsonPropertyName("selfReferenceSize") JsonIgnore(Condition = 3)

Gets or sets the self reference size.

public VisNetworkSelfReferenceOptions SelfReference { get; set; } #
JsonPropertyName("selfReference") JsonIgnore(Condition = 3)

Gets or sets the self reference.

public Object Shadow { get; set; } #
JsonPropertyName("shadow") JsonIgnore(Condition = 3)

Gets or sets the shadow.

public Object Smooth { get; set; } #
JsonPropertyName("smooth") JsonIgnore(Condition = 3)

Gets or sets the smooth.

public VisNetworkEndPointOffset EndPointOffset { get; set; } #
JsonPropertyName("endPointOffset") JsonIgnore(Condition = 3)

Gets or sets the end point offset.

public Dictionary<String, Object> AdditionalOptions { get; set; } #
JsonExtensionData JsonIgnore(Condition = 3)

Allows setting edge options not yet covered by the typed model (escape hatch for vis-network parity). Keys should match vis-network option names (typically camelCase).