Заморозить Разморозить строки и столбцы
Contents
[
Hide
]
В этом разделе рассматривается информация о закреплении и размораживании строк и столбцов рабочего листа. Закрепление столбцов или строк позволяет пользователям сохранять видимыми заголовки столбцов или строк при прокрутке к другим частям рабочего листа. Эта функция очень полезна для прокрутки рабочих листов, содержащих огромные объемы данных. Потому что в таких случаях, когда пользователи будут прокручивать данные, будут прокручиваться только данные, а заголовки останутся там, чтобы повысить читабельность данных.
Замораживание столбцов
Чтобы закрепить столбцы рабочего листа с помощью Aspose.Cells.GridDesktop, выполните следующие действия:
- Доступ к любому желаемомуРабочий лист
- Установите количествоЗамороженные столбцы вВорскхит
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 | |
// 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). Создаст эффект незамерзших столбов.
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 | |
// 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, выполните следующие действия:
- Доступ к любому желаемомуРабочий лист
- Установите количествоЗамороженные ряды вВорскхит
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 | |
// 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). Создаст эффект незастывших рядов.
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 | |
// 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; |