API Reference
VisNetworkFontOptions
Font configuration options.
Inheritance
- Object
- VisNetworkFontOptions
Constructors
public VisNetworkFontOptions() #Methods
public VisNetworkFontOptions WithAlign(VisNetworkAlign align) #VisNetworkFontOptionsSets text alignment.
Parameters
- align HtmlForgeX.VisNetworkAlign
- Alignment value.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithBackground(RGBColor background) #VisNetworkFontOptionsSets the background color.
Parameters
- background HtmlForgeX.RGBColor
- Background color.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithColor(RGBColor color) #VisNetworkFontOptionsSets the font color.
Parameters
- color HtmlForgeX.RGBColor
- Color to set.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithFace(String face) #VisNetworkFontOptionsSets the font family.
Parameters
- face System.String
- Font family name.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithMulti(VisNetworkMulti multi) #VisNetworkFontOptionsSets multi-line mode.
Parameters
- multi HtmlForgeX.VisNetworkMulti
- Multi-line option.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithSize(Int32 size) #VisNetworkFontOptionsSets the font size.
Parameters
- size System.Int32
- Size in pixels.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithStroke(Double width, RGBColor color) #VisNetworkFontOptionsSets stroke width and color.
Parameters
- width System.Double
- Stroke width.
- color HtmlForgeX.RGBColor
- Stroke color.
Returns
The font options for method chaining.
public VisNetworkFontOptions WithVadjust(Double vadjust) #VisNetworkFontOptionsAdjusts vertical positioning.
Parameters
- vadjust System.Double
- Vertical offset.
Returns
The font options for method chaining.
Inherited Methods
Properties
public Nullable<Int32> Size { get; set; } #JsonPropertyName("size") JsonIgnore(Condition = 3)Font size in pixels.
public String Background { get; set; } #JsonPropertyName("background") JsonIgnore(Condition = 3)Background color.
public Nullable<Double> StrokeWidth { get; set; } #JsonPropertyName("strokeWidth") JsonIgnore(Condition = 3)Stroke width for the text.
public String StrokeColor { get; set; } #JsonPropertyName("strokeColor") JsonIgnore(Condition = 3)Stroke color for the text.
public Nullable<VisNetworkAlign> Align { get; set; } #JsonPropertyName("align") JsonIgnore(Condition = 3)Text alignment.
public Nullable<VisNetworkMulti> Multi { get; set; } #JsonPropertyName("multi") JsonIgnore(Condition = 3)Multi-line mode.
public Nullable<Double> Vadjust { get; set; } #JsonPropertyName("vadjust") JsonIgnore(Condition = 3)Vertical adjustment.
public Object Bold { get; set; } #JsonPropertyName("bold") JsonIgnore(Condition = 3)Bold font configuration.
public Object Ital { get; set; } #JsonPropertyName("ital") JsonIgnore(Condition = 3)Italic font configuration.
public Object BoldItal { get; set; } #JsonPropertyName("boldital") JsonIgnore(Condition = 3)Bold italic font configuration.
public Object Mono { get; set; } #JsonPropertyName("mono") JsonIgnore(Condition = 3)Monospace font configuration.