HtmlForgeX

API Reference

Class

VisNetworkAdvancedColorOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents advanced color configuration options for VisNetwork edges. Supports basic color, hover/highlight states, opacity, and inheritance.

Inheritance

  • Object
  • VisNetworkAdvancedColorOptions

Constructors

public VisNetworkAdvancedColorOptions() #

Methods

WithColor 2 overloads
public VisNetworkAdvancedColorOptions WithColor(RGBColor color) #
Returns: VisNetworkAdvancedColorOptions

Sets the primary color.

Parameters

color System.String requiredposition: 0
The color value.

Returns

The color options for method chaining.

WithColor(HtmlForgeX.RGBColor color) #

Sets the primary color using an RGBColor.

Parameters

color HtmlForgeX.RGBColor required
The color value.

Returns

The color options for method chaining.

WithHighlight 2 overloads
public VisNetworkAdvancedColorOptions WithHighlight(RGBColor color) #
Returns: VisNetworkAdvancedColorOptions

Sets the highlight color.

Parameters

color System.String requiredposition: 0
The highlight color value.

Returns

The color options for method chaining.

WithHighlight(HtmlForgeX.RGBColor color) #

Sets the highlight color using an RGBColor.

Parameters

color HtmlForgeX.RGBColor required
The highlight color value.

Returns

The color options for method chaining.

WithHover 2 overloads
public VisNetworkAdvancedColorOptions WithHover(RGBColor color) #
Returns: VisNetworkAdvancedColorOptions

Sets the hover color.

Parameters

color System.String requiredposition: 0
The hover color value.

Returns

The color options for method chaining.

WithHover(HtmlForgeX.RGBColor color) #

Sets the hover color using an RGBColor.

Parameters

color HtmlForgeX.RGBColor required
The hover color value.

Returns

The color options for method chaining.

public VisNetworkAdvancedColorOptions WithInherit(VisNetworkColorInherit inherit) #
Returns: VisNetworkAdvancedColorOptions

Sets the color inheritance mode.

Parameters

inherit HtmlForgeX.VisNetworkColorInherit requiredposition: 0
The inheritance mode.

Returns

The color options for method chaining.

public VisNetworkAdvancedColorOptions WithOpacity(Double opacity) #
Returns: VisNetworkAdvancedColorOptions

Sets the opacity.

Parameters

opacity System.Double requiredposition: 0
The opacity value (0.0 to 1.0).

Returns

The color options for method chaining.

Properties

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

Gets or sets the primary color. Can be a hex string, RGB string, or color name.

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

Gets or sets the color to use when the element is highlighted.

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

Gets or sets the color to use when hovering over the element.

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

Gets or sets the opacity of the element (0.0 to 1.0).

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

Gets or sets the color inheritance mode for edges. Can be "from", "to", "both", or false.