Setting Connector line jump style
Contents
[
Hide
]
The code below shows how to:
- Load a sample file.
- Access a particular shape.
- Set shape’s Jump style.
Set shape’s Jump style Programming Sample
Use the following code in your .NET application to set shape’s jump style using Aspose.Diagram for .NET.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-diagram/Aspose.Diagram-for-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir_Shapes(); | |
// Load a source Visio | |
Diagram srcVisio = new Diagram(dataDir + "Drawing1.vsdx"); | |
//Get the connector | |
Shape shape = diagram.Pages[0].Shapes.GetShape(1); | |
//Set Jump Value | |
shape.SetConnectorJumpValue(ConLineJumpCodeValue.Always,ConLineJumpStyleValue.Arc); | |
// Save the new Visio | |
newDiagram.Save(dataDir + "out.vsdx", SaveFileFormat.VSDX); |