Ottieni i punti di connessione dalla forma

Contents
[ ]

Aspose.Cells fornisce funzionalità avanzate per gestire le forme nel foglio di calcolo. A volte c’è bisogno di ottenere i punti di connessione di una forma per allinearle o posizionarle nel posto appropriato. A questo scopo, sono richiesti tutti i punti di connessione. Il seguente codice può essere utilizzato per ottenere l’elenco dei punti di connessione di una forma in cui è utilizzata la funzione Shape.GetConnectionPoints().

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// Instantiate a new Workbook.
Workbook workbook = new Workbook();
// Get the first worksheet in the book.
Worksheet worksheet = workbook.getWorksheets().get(0);
// Add a new textbox to the collection.
int textboxIndex = worksheet.getTextBoxes().add(2, 1, 160, 200);
// Access your text box which is also a shape object from shapes collection
Shape shape = workbook.getWorksheets().get(0).getShapes().get(0);
// Get all the connection points in this shape
zo[] ConnectionPoints = shape.getConnectionPoints();