VisualConnectTo(String, Visual, String) 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.
Namespace: Demo3D.VisualsAssembly: Demo3D.Core (in Demo3D.Core.dll) Version: 19.00.00
Syntaxpublic virtual void ConnectTo(
string connectorName,
Visual other,
string otherConnectorName
)
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.
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