I would like the connector text appear a little above ( SHOW HERE ) ; compared to the default position (FastEherenet /021 ). Please refer the attachment
Shall it be possible. Please let me know
Can you please share your input document, code and your expected output?
Please refer to the picture
The text “FastEthernet” should be displayed where “SHOW HERE” text is being displayed .
Here is the code
Shape conSrcToVlan = new Shape();
string connectorMaster = “Dynamic connector”;
long srcVlanId = topologyDiagram.AddShape(conSrcToVlan, connectorMaster);
topologyDiagram.Connect(sourceDeviceId, ConnectionPointPlace.Right, vlanShapeId, ConnectionPointPlace.Left, srcVlanId);
The Connect method is as below
public void Connect(long shapeFrom, ConnectionPointPlace placeFrom, long shapeTo, ConnectionPointPlace placeTo, long connectorId)
_diagram.Pages.ConnectShapesViaConnector(shapeFrom, placeFrom, shapeTo, placeTo, connectorId);
Hi Imran ,
Please refer the picture in first post in this thread .
I would like to display FastEthernet /021 at the place “SHOW HERE” has been displayed
connector.Controls.X.Value = 0.9375;
connector.Controls.Y.Value = 0.125;
Please explain me “Controls tab under each Shape Sheet” .
I am not familiar with the screenshot, are you using ActiveX control . Can I use them in Winforms ( design mode )
Thank you for the inquiry. Please note, each shape in Microsoft Office Visio has a ShapeSheet (spreadsheet) that stores information about it. When you will open the drawing in the Microsoft Office Visio, please right-click the connector shape in the drawing and click “Show ShapeSheet”. You will see a shape sheet at the bottom of the drawing. You can check other details in the following help topic: [Open the ShapeSheet for a Shape, Page, or Document ]
Please let us know in case of any further assistance.