从形状获取连接点(C++)

Contents
[ ]

Aspose.Cells提供丰富的功能管理电子表格中的形状。有时需要获取形状的连接点以进行对齐或定位。以下代码可用于使用 Shape.GetConnectionPoints() 方法获取形状的连接点列表。

#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;

int main()
{
    Aspose::Cells::Startup();

    U16String srcDir(u"..\\Data\\01_SourceDirectory\\");

    Workbook workbook(srcDir + u"sampleGetFonts.xlsx");

    Vector<Font> fonts = workbook.GetFonts();

    for (int i = 0; i < fonts.GetLength(); ++i)
    {
        std::cout << fonts[i].ToString().ToUtf8() << std::endl;
    }

    Aspose::Cells::Cleanup();
}

.