HtmlForgeX

API Reference

Class

VisNetworkColorOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Color configuration options for nodes.

Inheritance

  • Object
  • VisNetworkColorOptions

Constructors

public VisNetworkColorOptions() #

Methods

public VisNetworkColorOptions WithBackground(RGBColor color) #
Returns: VisNetworkColorOptions

Sets the background color.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
Background color.

Returns

The color options for method chaining.

public VisNetworkColorOptions WithBorder(RGBColor color) #
Returns: VisNetworkColorOptions

Sets the border color.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
Border color.

Returns

The color options for method chaining.

public VisNetworkColorOptions WithHighlight(RGBColor background, RGBColor border) #
Returns: VisNetworkColorOptions

Sets the highlight colors.

Parameters

background HtmlForgeX.RGBColor requiredposition: 0
Background highlight color.
border HtmlForgeX.RGBColor requiredposition: 1
Border highlight color.

Returns

The color options for method chaining.

public VisNetworkColorOptions WithHover(RGBColor background, RGBColor border) #
Returns: VisNetworkColorOptions

Sets the hover colors.

Parameters

background HtmlForgeX.RGBColor requiredposition: 0
Background hover color.
border HtmlForgeX.RGBColor requiredposition: 1
Border hover color.

Returns

The color options for method chaining.

Properties

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

Background color.

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

Border color.

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

Highlight colors.

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

Hover colors.