تصفية الكائنات أثناء تحميل الدفتر في GridDesktop
Contents
[
Hide
]
سيناريوهات الاستخدام المحتملة
يرجى استخدام خاصية GridDesktop.LoadDataFilter أثناء تصفية البيانات من دفتر العمل.
تحتوي تعداد GridLoadDataFilterOptions على القيم التالية.
- الكل
- إعدادات الكتاب
- خلية فارغة
- خلية مع تخطيط
- بيانات الخلية
- خطأ الخلية
- رقم الخليّة
- سلسلة الخليّة
- قيمة الخلية
- Chart
- تنسيق شرطي
- التحقق من البيانات
- الأسماء المعرفة
- خصائص المستند
- صيغة
- الروابط الفائقة
- منطقة مدمجة
- الجدول المحوري
- الإعدادات
- الشكل
- بيانات الورقة
- إعدادات الورقة
- البنية
- النمط
- الجدول
- VBA
- خريطة Xml
تصفية البيانات أثناء تحميل مصنف
يوضح الكود النموذجي التالي كيفية تصفية الرسم من المصنف. يرجى التحقق من ملف الإكسل العينة. كما يمكنك ملاحظة أن جميع الرسوم البيانية / الأشكال / الصور تم تصفيتها من المصنف.
الكود المثالي
This file contains 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
// Filter all drawing objects(including Chart, Picture, OleObject and all other drawing objects) from the workbook. | |
gridDesktop1.LoadDataFilter = GridLoadDataFilterOptions.All&~GridLoadDataFilterOptions.Drawing; | |
//here is another example ,if we want to filter to show styles and values only, we can use the below code ,notice here we use | | |
// gridDesktop1.LoadDataFilter = GridLoadDataFilterOptions.CellValue | GridLoadDataFilterOptions.Style; | |
gridDesktop1.ImportExcelFile("5472489.xlsx"); | |