VisualConnectTo(String, Visual, String, Boolean) Method |
Connect the visual to another visual with the corresponding connector names.
This connection replaces any existing connections on this or the other visual's connector,
unless allowMultiple is true, in which case this connection is added to existing connections.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic virtual void ConnectTo(
string connectorName,
Visual other,
string otherConnectorName,
bool allowMultiple
)
Parameters
- connectorName String
- The connector on this visual.
- other Visual
- The other visual to connect to.
- otherConnectorName String
- The name of the connector on the other visual to connect to.
- allowMultiple Boolean
- If true, add connection to existing connections, if false then replace existing connections.
Examplevoid ReplaceConnections(Visual visualA, Visual visualB)
{
visualA.ConnectTo("End", visualB, "Start");
}
void AddToConnections(Visual visualA, Visual visualB)
{
visualA.ConnectTo("End", visualB, "Start", allowMultiple:true);
}
See Also