تجميد وإزالة تجميد الأجزاء
Contents
[
Hide
]
يشرح هذا الموضوع كيفية تجميد وإلغاء تجميد الصفوف والأعمدة. يتيح تجميد الأعمدة أو الصفوف للمستخدمين الاحتفاظ بعناوين الأعمدة أو عناوين الصفوف مرئية أثناء قيامهم بالتمرير إلى أجزاء أخرى من ورقة العمل. هذه الميزة مفيدة للغاية عند التعامل مع أوراق العمل التي تحتوي على كميات كبيرة من البيانات. عندما يقوم المستخدمون بالتمرير يتم تمرير البيانات فقط لأسفل وتظل العناوين في مكانها ، مما يسهل قراءة التاريخ. ميزة تجميد الأجزاء مدعومة فقط في Internet Explorer 6.0 أو إصدار أحدث.
تجميد الصفوف والأعمدة
لتجميد عدد معين من الصفوف والأعمدة:
- قم بإضافة عنصر تحكم Aspose.Cells.GridWeb إلى نموذج ويب.
- قم بالوصول إلى ورقة العمل.
- قم بتجميد عدد من الصفوف والأعمدة.
من الممكن أيضًا تجميد عدد محدد من الصفوف والأعمدة باستخدام الواجهة. انقر بزر الماوس الأيمن فوق الخلية حيث تريد تجميد الصفوف والأعمدة وتحديدهاتجميد من القائمة.
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Get user inputs for row, column, number of rows and number of columns | |
int row = Convert.ToInt16(txtRow.Text.Trim()); | |
int column = Convert.ToInt16(txtColumn.Text.Trim()); | |
int noOfRows = Convert.ToInt16(txtNoOfRows.Text.Trim()); | |
int noOfColumns = Convert.ToInt16(txtNoOfColumns.Text.Trim()); | |
// Accessing the reference of the worksheet that is currently active | |
GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex]; | |
// Freeze desired rows and columns | |
sheet.FreezePanes(row, column, noOfRows, noOfColumns); |
إلغاء تجميد الصفوف والأعمدة
لإلغاء تجميد الصفوف والأعمدة:
- قم بإضافة عنصر تحكم Aspose.Cells.GridWeb إلى نموذج ويب.
- قم بالوصول إلى ورقة العمل.
- إلغاء تجميد الصفوف والأعمدة.
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Accessing the reference of the worksheet that is currently active | |
GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex]; | |
// Unfreezing rows and columns | |
sheet.UnFreezePanes(); |