HtmlForgeX

API Reference

Class

VisNetworkCustomShapes

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers static

Provides predefined custom shapes for VisNetwork nodes.

Inheritance

  • Object
  • VisNetworkCustomShapes

Methods

public static VisNetworkCustomShape Arrow(String direction = "right") #
Returns: VisNetworkCustomShape

Creates an arrow shape pointing in a specific direction.

Parameters

direction System.String = "right" optionalposition: 0
public static VisNetworkCustomShape Custom(String name, String renderFunction) #
Returns: VisNetworkCustomShape

Creates a custom shape from user-provided JavaScript code.

Parameters

name System.String requiredposition: 0
The name of the shape.
renderFunction System.String requiredposition: 1
The JavaScript render function.
public static VisNetworkCustomShape Emoji(String emoji, Int32 fontSize = 20) #
Returns: VisNetworkCustomShape

Creates a shape that displays an emoji or text.

Parameters

emoji System.String requiredposition: 0
fontSize System.Int32 = 20 optionalposition: 1
public static VisNetworkCustomShape Gear(Int32 teeth = 8) #
Returns: VisNetworkCustomShape

Creates a gear/cog shape.

Parameters

teeth System.Int32 = 8 optionalposition: 0
public static VisNetworkCustomShape RoundedRectangle(Int32 radius = 10) #
Returns: VisNetworkCustomShape

Creates a rounded rectangle shape.

Parameters

radius System.Int32 = 10 optionalposition: 0

Properties

public static VisNetworkCustomShape Heart { get; } #

Creates a heart shape.

public static VisNetworkCustomShape Cloud { get; } #

Creates a cloud shape.

public static VisNetworkCustomShape Lightning { get; } #

Creates a lightning bolt shape.

public static VisNetworkCustomShape House { get; } #

Creates a house shape.

public static VisNetworkCustomShape Person { get; } #

Creates a person/user shape.