API Reference
VisNetworkLayoutOptions
Layout configuration options.
Inheritance
- Object
- VisNetworkLayoutOptions
Constructors
public VisNetworkLayoutOptions() #Methods
public VisNetworkLayoutOptions WithClusterThreshold(Int32 threshold) #VisNetworkLayoutOptionsSets the ClusterThreshold property.
Parameters
- threshold System.Int32
- Cluster threshold value.
Returns
The current VisNetworkLayoutOptions instance.
public VisNetworkLayoutOptions WithHierarchical(Action<VisNetworkHierarchicalOptions> configure) #VisNetworkLayoutOptionsEnables or disables hierarchical layout.
Parameters
- enabled System.Boolean = true
- True to enable hierarchical layout.
Returns
The current VisNetworkLayoutOptions instance.
WithHierarchical(HtmlForgeX.VisNetworkHierarchicalOptions hierarchicalOptions) #Sets the hierarchical layout options.
Parameters
- hierarchicalOptions HtmlForgeX.VisNetworkHierarchicalOptions
- Options to apply.
Returns
The current VisNetworkLayoutOptions instance.
WithHierarchical(System.Action{HtmlForgeX.VisNetworkHierarchicalOptions} configure) #Configures hierarchical layout options via delegate.
Parameters
- configure System.Action{HtmlForgeX.VisNetworkHierarchicalOptions}
- Delegate to configure hierarchical options.
Returns
The current VisNetworkLayoutOptions instance.
public VisNetworkLayoutOptions WithImprovedLayout(Boolean improved = true) #VisNetworkLayoutOptionsEnables or disables improved layout heuristics.
Parameters
- improved System.Boolean = true
- True to enable improved layout.
Returns
The current VisNetworkLayoutOptions instance.
public VisNetworkLayoutOptions WithRandomSeed(Int32 seed) #VisNetworkLayoutOptionsSets the RandomSeed property.
Parameters
- seed System.Int32
- Random seed value.
Returns
The current VisNetworkLayoutOptions instance.
Inherited Methods
Properties
public Nullable<Int32> RandomSeed { get; set; } #JsonPropertyName("randomSeed") JsonIgnore(Condition = 3)Gets or sets the seed used for initial random positioning.
public Nullable<Boolean> ImprovedLayout { get; set; } #JsonPropertyName("improvedLayout") JsonIgnore(Condition = 3)Gets or sets a value indicating whether improved layout heuristics are enabled.
public Nullable<Int32> ClusterThreshold { get; set; } #JsonPropertyName("clusterThreshold") JsonIgnore(Condition = 3)Gets or sets the cluster threshold used for performance tuning.
public Object Hierarchical { get; set; } #JsonPropertyName("hierarchical") JsonIgnore(Condition = 3)Gets or sets hierarchical layout options or a boolean to enable them.