HtmlForgeX

API Reference

Class

VisNetworkFontOptions

Namespace HtmlForgeX
Assembly HtmlForgeX

Font configuration options.

Inheritance

  • Object
  • VisNetworkFontOptions

Constructors

public VisNetworkFontOptions() #

Methods

public VisNetworkFontOptions WithAlign(VisNetworkAlign align) #
Returns: VisNetworkFontOptions

Sets text alignment.

Parameters

align HtmlForgeX.VisNetworkAlign requiredposition: 0
Alignment value.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithBackground(RGBColor background) #
Returns: VisNetworkFontOptions

Sets the background color.

Parameters

background HtmlForgeX.RGBColor requiredposition: 0
Background color.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithColor(RGBColor color) #
Returns: VisNetworkFontOptions

Sets the font color.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
Color to set.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithFace(String face) #
Returns: VisNetworkFontOptions

Sets the font family.

Parameters

face System.String requiredposition: 0
Font family name.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithMulti(VisNetworkMulti multi) #
Returns: VisNetworkFontOptions

Sets multi-line mode.

Parameters

multi HtmlForgeX.VisNetworkMulti requiredposition: 0
Multi-line option.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithSize(Int32 size) #
Returns: VisNetworkFontOptions

Sets the font size.

Parameters

size System.Int32 requiredposition: 0
Size in pixels.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithStroke(Double width, RGBColor color) #
Returns: VisNetworkFontOptions

Sets stroke width and color.

Parameters

width System.Double requiredposition: 0
Stroke width.
color HtmlForgeX.RGBColor requiredposition: 1
Stroke color.

Returns

The font options for method chaining.

public VisNetworkFontOptions WithVadjust(Double vadjust) #
Returns: VisNetworkFontOptions

Adjusts vertical positioning.

Parameters

vadjust System.Double requiredposition: 0
Vertical offset.

Returns

The font options for method chaining.

Properties

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

Font color.

public Nullable<Int32> Size { get; set; } #
JsonPropertyName("size") JsonIgnore(Condition = 3)

Font size in pixels.

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

Font family.

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.