الحصول على نقاط الاتصال من الشكل باستخدام ++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();
}

.