HtmlForgeX

API Reference

Class

VisNetworkShapeProperties

Namespace HtmlForgeX
Assembly HtmlForgeX

Shape-specific properties for custom node shapes.

Inheritance

  • Object
  • VisNetworkShapeProperties

Constructors

public VisNetworkShapeProperties() #

Methods

WithBorderDashes 3 overloads
public VisNetworkShapeProperties WithBorderDashes(VisNetworkDashPattern pattern) #
Returns: VisNetworkShapeProperties

Enables or disables dashed borders for the node.

Parameters

enabled System.Boolean = true requiredposition: 0
True to enable dashed borders, false for solid borders

Returns

The shape properties for method chaining

public VisNetworkShapeProperties WithBorderDashes(params Int32[] pattern) #
Returns: VisNetworkShapeProperties

Sets a custom dash pattern for the node border.

Parameters

pattern System.Int32[] requiredposition: 0
An array of integers representing dash and gap lengths

Returns

The shape properties for method chaining

WithBorderDashes(HtmlForgeX.VisNetworkDashPattern pattern) #

Sets a predefined dash pattern for the node border.

Parameters

pattern HtmlForgeX.VisNetworkDashPattern required
The dash pattern to use

Returns

The shape properties for method chaining

public VisNetworkShapeProperties WithBorderRadius(Double radius) #
Returns: VisNetworkShapeProperties

Sets the border radius.

Parameters

radius System.Double requiredposition: 0
Radius value.

Returns

The shape properties for method chaining.

public VisNetworkShapeProperties WithInterpolation(Boolean enabled = true) #
Returns: VisNetworkShapeProperties

Enables or disables interpolation.

Parameters

enabled System.Boolean = true optionalposition: 0
Whether interpolation is enabled.

Returns

The shape properties for method chaining.

public VisNetworkShapeProperties WithUseBorderWithImage(Boolean use = true) #
Returns: VisNetworkShapeProperties

Enables or disables the border when using images.

Parameters

use System.Boolean = true optionalposition: 0
True to show border.

Returns

The shape properties for method chaining.

public VisNetworkShapeProperties WithUseImageSize(Boolean use = true) #
Returns: VisNetworkShapeProperties

Uses the image's natural size.

Parameters

use System.Boolean = true optionalposition: 0
True to use image size.

Returns

The shape properties for method chaining.

Properties

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

Dash pattern for the border.

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

Border corner radius.

public Nullable<Boolean> Interpolation { get; set; } #
JsonPropertyName("interpolation") JsonIgnore(Condition = 3)

Enable interpolation for custom shapes.

public Nullable<Boolean> UseImageSize { get; set; } #
JsonPropertyName("useImageSize") JsonIgnore(Condition = 3)

Use image's natural size.

public Nullable<Boolean> UseBorderWithImage { get; set; } #
JsonPropertyName("useBorderWithImage") JsonIgnore(Condition = 3)

Show border when using images.