API Reference
VisNetworkShapeProperties
Shape-specific properties for custom node shapes.
Inheritance
- Object
- VisNetworkShapeProperties
Constructors
public VisNetworkShapeProperties() #Methods
public VisNetworkShapeProperties WithBorderDashes(VisNetworkDashPattern pattern) #VisNetworkShapePropertiesEnables or disables dashed borders for the node.
Parameters
- enabled System.Boolean = true
- True to enable dashed borders, false for solid borders
Returns
The shape properties for method chaining
public VisNetworkShapeProperties WithBorderDashes(params Int32[] pattern) #VisNetworkShapePropertiesSets a custom dash pattern for the node border.
Parameters
- pattern System.Int32[]
- 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
- The dash pattern to use
Returns
The shape properties for method chaining
public VisNetworkShapeProperties WithBorderRadius(Double radius) #VisNetworkShapePropertiesSets the border radius.
Parameters
- radius System.Double
- Radius value.
Returns
The shape properties for method chaining.
public VisNetworkShapeProperties WithInterpolation(Boolean enabled = true) #VisNetworkShapePropertiesEnables or disables interpolation.
Parameters
- enabled System.Boolean = true
- Whether interpolation is enabled.
Returns
The shape properties for method chaining.
public VisNetworkShapeProperties WithUseBorderWithImage(Boolean use = true) #VisNetworkShapePropertiesEnables or disables the border when using images.
Parameters
- use System.Boolean = true
- True to show border.
Returns
The shape properties for method chaining.
public VisNetworkShapeProperties WithUseImageSize(Boolean use = true) #VisNetworkShapePropertiesUses the image's natural size.
Parameters
- use System.Boolean = true
- True to use image size.
Returns
The shape properties for method chaining.
Inherited Methods
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.