تثبيت صفوف و أعمدة و إزالة تثبيتها
تجميد الأعمدة
لتجميد الأعمدة في ورقة العمل باستخدام Aspose.Cells.GridDesktop، يرجى اتباع الخطوات أدناه:
- الوصول إلى أي ورقة عمل مرغوبة
- تعيين عدد الـ الأعمدة المجمدة في ورقة العمل
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing the worksheet of the Grid that is currently active | |
Worksheet sheet = gridDesktop1.GetActiveWorksheet(); | |
// Setting the number of frozen columns to 2 | |
sheet.FrozenCols = 2; |
إلغاء تجميد الأعمدة
لإلغاء تجميد الأعمدة في ورقة العمل باستخدام Aspose.Cells.GridDesktop، يرجى اتباع الخطوات أدناه:
- الوصول إلى أي ورقة عمل مرغوبة
- تعيين عدد الـ الأعمدة المجمدة في ورقة العمل للرقم صفر (0). سينتج عنه تأثير الإلغاء المجمدة للأعمدة
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing the worksheet of the Grid that is currently active | |
Worksheet sheet = gridDesktop1.GetActiveWorksheet(); | |
// Setting the number of frozen columns to 0 for unfreezing columns | |
sheet.FrozenCols = 0; |
تجميد الصفوف
لتجميد الصفوف في ورقة العمل باستخدام Aspose.Cells.GridDesktop، يرجى اتباع الخطوات أدناه:
- الوصول إلى أي ورقة عمل مرغوبة
- تعيين عدد الـ الصفوف المجمدة في ورقة العمل
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing the worksheet of the Grid that is currently active | |
Worksheet sheet = gridDesktop1.GetActiveWorksheet(); | |
// Setting the number of frozen rows to 2 | |
sheet.FrozenRows = 2; |
إلغاء تجميد الصفوف
لإلغاء تجميد الصفوف في ورقة العمل باستخدام Aspose.Cells.GridDesktop، يرجى اتباع الخطوات أدناه:
- الوصول إلى أي ورقة عمل مرغوبة
- تعيين عدد الـ الصفوف المجمدة في ورقة العمل للرقم صفر (0). سينتج عنه تأثير الإلغاء المجمدة للصفوف
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing the worksheet of the Grid that is currently active | |
Worksheet sheet = gridDesktop1.GetActiveWorksheet(); | |
// Setting the number of frozen rows to 0 for unfreezing rows | |
sheet.FrozenRows = 0; |