API Reference
Class
VisNetworkKeyboardOptions
Keyboard interaction options.
Inheritance
- Object
- VisNetworkKeyboardOptions
Constructors
public VisNetworkKeyboardOptions() #Methods
public VisNetworkKeyboardOptions WithAutoFocus(Boolean autoFocus = true) #Returns:
VisNetworkKeyboardOptionsSets the AutoFocus property.
Parameters
- autoFocus System.Boolean = true
- Whether autofocus is enabled.
Returns
The current VisNetworkKeyboardOptions instance.
public VisNetworkKeyboardOptions WithBindToWindow(Boolean bind = true) #Returns:
VisNetworkKeyboardOptionsSets the BindToWindow property.
Parameters
- bind System.Boolean = true
- Whether to bind keyboard events to the window.
Returns
The current VisNetworkKeyboardOptions instance.
public VisNetworkKeyboardOptions WithEnabled(Boolean enabled = true) #Returns:
VisNetworkKeyboardOptionsSets Enabled.
Parameters
- enabled System.Boolean = true
- Whether keyboard navigation is enabled.
Returns
The current VisNetworkKeyboardOptions instance.
public VisNetworkKeyboardOptions WithSpeed(Double x, Double y, Double zoom) #Returns:
VisNetworkKeyboardOptionsSets the Speed property.
Parameters
- x System.Double
- Horizontal speed.
- y System.Double
- Vertical speed.
- zoom System.Double
- Zoom speed.
Returns
The current VisNetworkKeyboardOptions instance.
Inherited Methods
Properties
public Nullable<Boolean> Enabled { get; set; } #JsonPropertyName("enabled") JsonIgnore(Condition = 3)Gets or sets a value indicating whether keyboard navigation is enabled.
public Object Speed { get; set; } #JsonPropertyName("speed") JsonIgnore(Condition = 3)Gets or sets the keyboard movement speed.
public Nullable<Boolean> BindToWindow { get; set; } #JsonPropertyName("bindToWindow") JsonIgnore(Condition = 3)Gets or sets a value indicating whether keyboard events are bound to the window.
public Nullable<Boolean> AutoFocus { get; set; } #JsonPropertyName("autoFocus") JsonIgnore(Condition = 3)Gets or sets a value indicating whether the network should autofocus when initialized.