シェイプから接続ポイントを取得する

Contents
[ ]

Aspose.Cells は、スプレッドシートで形状を管理するための豊富な機能を提供します。図形を適切な場所に整列または配置するために、図形の接続ポイントを取得する必要がある場合があります。この目的のために、すべての接続ポイントが必要です。次のコードを使用して、形状の接続ポイントのリストを取得できます。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();