API Reference
VisNetworkAdvancedColorOptions
Represents advanced color configuration options for VisNetwork edges. Supports basic color, hover/highlight states, opacity, and inheritance.
Inheritance
- Object
- VisNetworkAdvancedColorOptions
Constructors
public VisNetworkAdvancedColorOptions() #Methods
public VisNetworkAdvancedColorOptions WithColor(RGBColor color) #VisNetworkAdvancedColorOptionsSets the primary color.
Parameters
- color System.String
- 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
- The color value.
Returns
The color options for method chaining.
public VisNetworkAdvancedColorOptions WithHighlight(RGBColor color) #VisNetworkAdvancedColorOptionsSets the highlight color.
Parameters
- color System.String
- 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
- The highlight color value.
Returns
The color options for method chaining.
public VisNetworkAdvancedColorOptions WithHover(RGBColor color) #VisNetworkAdvancedColorOptionsSets the hover color.
Parameters
- color System.String
- 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
- The hover color value.
Returns
The color options for method chaining.
public VisNetworkAdvancedColorOptions WithInherit(VisNetworkColorInherit inherit) #VisNetworkAdvancedColorOptionsSets the color inheritance mode.
Parameters
- inherit HtmlForgeX.VisNetworkColorInherit
- The inheritance mode.
Returns
The color options for method chaining.
public VisNetworkAdvancedColorOptions WithOpacity(Double opacity) #VisNetworkAdvancedColorOptionsSets the opacity.
Parameters
- opacity System.Double
- The opacity value (0.0 to 1.0).
Returns
The color options for method chaining.
Inherited Methods
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.