HtmlForgeX

API Reference

Class

VisNetworkEdge

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents an edge in a Vis Network diagram.

Inheritance

  • Object
  • VisNetworkEdge

Constructors

Methods

public VisNetworkEdge EdgeArrows(VisNetworkArrows arrows) #
Returns: VisNetworkEdge

Configures the arrows displayed on this edge.

Parameters

arrows HtmlForgeX.VisNetworkArrows requiredposition: 0
Arrow options.

Returns

The current VisNetworkEdge instance.

EdgeColor 2 overloads
public VisNetworkEdge EdgeColor(RGBColor color) #
Returns: VisNetworkEdge

Specifies the edge color using a hex or CSS color string.

Parameters

color System.String requiredposition: 0
Color value.

Returns

The current VisNetworkEdge instance.

EdgeColor(HtmlForgeX.RGBColor color) #

Specifies the edge color using an RGBColor instance.

Parameters

color HtmlForgeX.RGBColor required
Color value.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgeDashes(Boolean dashes = true) #
Returns: VisNetworkEdge

Enables or disables dashed line style for the edge.

Parameters

dashes System.Boolean = true optionalposition: 0
Value indicating whether dashes should be used.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgeHidden(Boolean hidden = true) #
Returns: VisNetworkEdge

Hides or shows the edge.

Parameters

hidden System.Boolean = true optionalposition: 0
True to hide the edge.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgeLabel(String label) #
Returns: VisNetworkEdge

Sets the edge label displayed in the diagram.

Parameters

label System.String requiredposition: 0
Label text.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgeLength(Double length) #
Returns: VisNetworkEdge

Specifies the ideal length of the edge in pixels.

Parameters

length System.Double requiredposition: 0
Length value.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgePhysics(Boolean physics = true) #
Returns: VisNetworkEdge

Enables or disables physics calculations for the edge.

Parameters

physics System.Boolean = true optionalposition: 0
True to enable physics.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgeTitle(String title) #
Returns: VisNetworkEdge

Sets the edge tooltip title.

Parameters

title System.String requiredposition: 0
Title text.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge EdgeWidth(Double width) #
Returns: VisNetworkEdge

Sets the width of the edge line in pixels.

Parameters

width System.Double requiredposition: 0
Edge width.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge FromNode(Object from) #
Returns: VisNetworkEdge

Sets the identifier of the source node.

Parameters

from System.Object requiredposition: 0
Source node id.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge IdValue(Object id) #
Returns: VisNetworkEdge

Sets the identifier of the edge.

Parameters

id System.Object requiredposition: 0
Identifier value.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge SetCustom(String key, Object value) #
Returns: VisNetworkEdge

Sets a custom property on the edge that will be included in the output dictionary.

Parameters

key System.String requiredposition: 0
Property name.
value System.Object requiredposition: 1
Property value.

Returns

The current VisNetworkEdge instance.

public VisNetworkEdge ToNode(Object to) #
Returns: VisNetworkEdge

Sets the identifier of the destination node.

Parameters

to System.Object requiredposition: 0
Destination node id.

Returns

The current VisNetworkEdge instance.

Properties

public Object Id { get; set; } #

Gets or sets the unique identifier of the edge.

public Object From { get; set; } #

Gets or sets the identifier of the source node.

public Object To { get; set; } #

Gets or sets the identifier of the destination node.

public String Label { get; set; } #

Gets or sets the text label shown on the edge.

public String Title { get; set; } #

Gets or sets the tooltip title for the edge.

public Nullable<VisNetworkArrows> Arrows { get; set; } #

Gets or sets the arrows configuration for the edge.

public String Color { get; set; } #

Gets or sets the color of the edge line.

public Nullable<Double> Width { get; set; } #

Gets or sets the width of the edge line in pixels.

public Nullable<Boolean> Dashes { get; set; } #

Gets or sets a value indicating whether the edge should be drawn with dashes.

public Nullable<Boolean> Hidden { get; set; } #

Gets or sets a value indicating whether the edge is hidden.

public Nullable<Boolean> Physics { get; set; } #

Gets or sets a value indicating whether physics calculations are enabled for the edge.

public Nullable<Double> Length { get; set; } #

Gets or sets the ideal length of the edge in pixels.

public Dictionary<String, Object> Custom { get; } #

Gets a dictionary of custom key/value pairs that will be serialized with the edge.

Extension Methods

public static VisNetworkEdgeOptions ToEdgeOptions(VisNetworkEdge edge) #
Returns: VisNetworkEdgeOptions

Converts legacy VisNetworkEdge to new VisNetworkEdgeOptions.

Parameters

edge HtmlForgeX.VisNetworkEdge requiredposition: 0