API Reference
VisNetworkIconOptions
Icon configuration for icon-shaped nodes.
Inheritance
- Object
- VisNetworkIconOptions
Constructors
public VisNetworkIconOptions() #Methods
public VisNetworkIconOptions WithCode(String code) #VisNetworkIconOptionsSets the icon code.
Parameters
- code System.String
- Icon code.
Returns
The icon options for method chaining.
public VisNetworkIconOptions WithColor(RGBColor color) #VisNetworkIconOptionsSets the icon color.
Parameters
- color HtmlForgeX.RGBColor
- Color value.
Returns
The icon options for method chaining.
public VisNetworkIconOptions WithFace(String face) #VisNetworkIconOptionsSets the icon face.
Parameters
- face System.String
- Font face.
Returns
The icon options for method chaining.
public VisNetworkIconOptions WithFontAwesome(FontAwesomeBrands icon) #VisNetworkIconOptionsSets the icon using a FontAwesome Solid icon. Automatically sets face for Font Awesome 6.
Parameters
- icon HtmlForgeX.FontAwesomeSolid
- The FontAwesome solid icon to use
Returns
The icon options for method chaining
WithFontAwesome(HtmlForgeX.FontAwesomeRegular icon) #Sets the icon using a FontAwesome Regular icon. Automatically sets face for Font Awesome 6.
Parameters
- icon HtmlForgeX.FontAwesomeRegular
- The FontAwesome regular icon to use
Returns
The icon options for method chaining
WithFontAwesome(HtmlForgeX.FontAwesomeBrands icon) #Sets the icon using a FontAwesome Brand icon. Automatically sets face for Font Awesome 6 Brands.
Parameters
- icon HtmlForgeX.FontAwesomeBrands
- The FontAwesome brand icon to use
Returns
The icon options for method chaining
public VisNetworkIconOptions WithFontAwesome5(FontAwesome5Brands icon) #VisNetworkIconOptionsSets the icon using a FontAwesome 5 Solid icon. Uses proper face format for vis.js compatibility.
Parameters
- icon HtmlForgeX.FontAwesome5Solid
- The FontAwesome 5 solid icon to use
Returns
The icon options for method chaining
WithFontAwesome5(HtmlForgeX.FontAwesome5Regular icon) #Sets the icon using a FontAwesome 5 Regular icon. Uses proper face format for vis.js compatibility.
Parameters
- icon HtmlForgeX.FontAwesome5Regular
- The FontAwesome 5 regular icon to use
Returns
The icon options for method chaining
WithFontAwesome5(HtmlForgeX.FontAwesome5Brands icon) #Sets the icon using a FontAwesome 5 Brand icon. Uses proper face format for vis.js compatibility.
Parameters
- icon HtmlForgeX.FontAwesome5Brands
- The FontAwesome 5 brand icon to use
Returns
The icon options for method chaining
public VisNetworkIconOptions WithSize(Int32 size) #VisNetworkIconOptionsSets the icon size.
Parameters
- size System.Int32
- Size value.
Returns
The icon options for method chaining.
public VisNetworkIconOptions WithWeight(String weight) #VisNetworkIconOptionsSets the font weight.
Parameters
- weight System.String
- Weight value.
Returns
The icon options for method chaining.
Inherited Methods
Properties
public Nullable<Int32> Size { get; set; } #JsonPropertyName("size") JsonIgnore(Condition = 3)Icon size.
public String Weight { get; set; } #JsonPropertyName("weight") JsonIgnore(Condition = 3)Font weight.