XamNetworkNode("xamNetworkNode1").ActivateNode "Node45"
This topic provides information about the xamNetworkNode™ control’s testable user recordable methods.
This topic contains the following sections:
The following table briefly explains the various recordable methods for testing the control. Detailed information about the methods follows the table.
This method activates a single xamNetworkNode control node obtained from its oNodeIdentifier
.
The following table explains the method’s parameter followed by code example.
Activating the node labeled “Node45.”
XamNetworkNode("xamNetworkNode1").ActivateNode "Node45"
Activating the node using an index (zero-based).
XamNetworkNode("xamNetworkNode1").SelectNodes 10
Initially there is no active node.
The following table lists the possible exceptions to the method and the likely reason causing them.
This method clears the xamNetworkNode control’s entire selection of nodes.
None
The following script is from the recording where the xamNetworkNode is set with selection mode as “ Extended .” While in extended mode, selecting a node and then clicking on the same node again clears the entire selection.
XamNetworkNode("xamNetworkNode1").ClearSelection
Clears all nodes from any selection.
N/A
The method described here collapses a single xamNetworkNode control node, obtained from its oNodeIdentifier
.
The following table explains the method’s parameter followed by code example.
Collapsing the node with label “Node3.”
XamNetworkNode("xamNetworkNode1").CollapseNode "Node3"
Collapsing the node using an index 2.
XamNetworkNode("xamNetworkNode1").CollapseNode 2
Initially, all nodes are expanded with the expansion indicators not visible (disabled).
The following table lists the possible exceptions to the method and the likely reason causing them.
This method expands a single node, of the xamNetworkNode control, obtained from its oNodeIdentifier
.
The following table explains the method’s parameter followed by code example.
Expanding the node with label “Node3.”
XamNetworkNode("xamNetworkNode1").ExpandNode "Node3"
Expanding the node using an index (zero-based).
XamNetworkNode("xamNetworkNode1").ExpandNode 2
By design, all nodes are initially expanded with their expansion indicators not visible (disabled).
The following table lists the possible exceptions to the method and the likely reason causing them.
This method selects a single node or an array of nodes obtained from the xamNetworkNode control’s oNodeIdentifiers
argument.
The following table explains the method’s parameter followed by code example.
Selecting multiple nodes with labels identified as, “Node44” and “Node45.”
XamNetworkNode("xamNetworkNode1").SelectNodes ARRAY("Node44", "Node45")
Selecting multiple nodes using the nodes’ indices (zero-based).
XamNetworkNode("xamNetworkNode1").SelectNodes ARRAY(15, 16)
Selecting a single node with label identified as, “Node44.”
XamNetworkNode("xamNetworkNode1").SelectNodes "Node44"
Selecting a single node using the node’s index (zero-based).
XamNetworkNode("xamNetworkNode1").SelectNodes 15
All nodes are unselected.
The following table lists the possible exceptions to the method and the likely reason causing them.
This method identifies the pan area on the xamNetworkNode control’s layout using two coordinates (dAreaLeft
and dAreaTop
).
The following table explains the method’s parameters followed by code example.
Indicates the control’s position on the xamNetworkNode layout using the pan area coordinates.
XamNetworkNode("xamNetworkNode1").PanArea 2.7057, 2.8726
N/A
Refer to Panning and Zooming topic.
This method Identifies the zoom area on the xamNetworkNode control’s layout using the four coordinates (dAreaLeft
, dAreaTop
, dAreaRight
and dAreaBottom
).
The following table explains the method’s parameters followed by code example.
Displays the control on the xamNetworkNode layout, zoomed in or out, based on the specified coordinates.
XamNetworkNode("xamNetworkNode1").ZoomArea -7.4562, 0, 651.9637, 497.7631
N/A
Refer to the Panning and Zooming topic for additional information.
The following topics provide additional information related to this topic.