استخدام ميزة إظهار الصيغ في GridWeb
Contents
[
Hide
]
في بعض الأحيان ، تحتاج إلى إيجاد طريقة سهلة للخلايا التي تحتوي على صيغ. يجب أن يكون لديك نهج لقراءة جميع الصيغ بسرعة للتحقق من وجود أخطاء. يمكن أن يساعدك هذا في تتبع البيانات المستخدمة في الصيغة.
Aspose.Cells.GridWeb يوفر ميزة ما يسمى إظهار الصيغ في Microsoft Excel.
استخدام ميزة إظهار الصيغ
كل ما تحتاجه هو استخدام الاختصار “CTRL + ~” لعرض كافة الصيغ في ورقة العمل.
على سبيل المثال ، نقوم بتحميل ملف قالب في GridWeb الذي يحتوي على صيغ في العمود C ، وهنا الكود الذي استخدمناه ببساطة لتحميل الملف.
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-cells/Aspose.Cells-for-.NET | |
// Gets the web application's path. | |
string path = (this.Master as Site).GetDataDir(); | |
// Clear the sheets | |
GridWeb1.WorkSheets.Clear(); | |
// Load the file | |
GridWeb1.ImportExcelFile(path + "\\Articles\\source.xlsx"); |
يتم تحميل الملف في GridWeb ويمكننا رؤية ورقة بها جميع القيم الموجودة في الصورة أدناه.
بعد الضغط على CTRL + ~ ، يتم عرض جميع الصيغ.