Congela Sblocca righe e colonne
Contents
[
Hide
]
Questo argomento tratta le informazioni sul blocco e lo sblocco di righe e colonne di un foglio di lavoro. Il blocco di colonne o righe consente agli utenti di mantenere visibili le intestazioni di colonna oi titoli di riga mentre scorrono verso altre parti del foglio di lavoro. Questa funzione è molto utile per scorrere i fogli di lavoro che contengono enormi volumi di dati. Perché, in tali casi, quando gli utenti scorrono i dati, solo i dati verranno fatti scorrere verso il basso e le intestazioni rimarranno lì per aumentare la leggibilità dei dati.
Colonne di congelamento
Per bloccare le colonne di un foglio di lavoro utilizzando Aspose.Cells.GridDesktop, procedi nel seguente modo:
- Accedi a qualsiasi desideratoFoglio di lavoro
- Imposta il numero diColonne Congelate nelFoglio di lavoro
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; |
Colonne non bloccate
Per sbloccare le colonne di un foglio di lavoro utilizzando Aspose.Cells.GridDesktop, procedi nel seguente modo:
- Accedi a qualsiasi desideratoFoglio di lavoro
- Imposta il numero diColonne Congelate nelFoglio di lavoro a Zero (0). Produrrà l’effetto di colonne non congelate
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; |
Congelamento delle righe
Per bloccare le righe di un foglio di lavoro utilizzando Aspose.Cells.GridDesktop, procedi nel seguente modo:
- Accedi a qualsiasi desideratoFoglio di lavoro
- Imposta il numero diRighe congelate nelFoglio di lavoro
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; |
Righe non bloccate
Per sbloccare le righe di un foglio di lavoro utilizzando Aspose.Cells.GridDesktop, procedi nel seguente modo:
- Accedi a qualsiasi desideratoFoglio di lavoro
- Imposta il numero diRighe congelate nelFoglio di lavoro a Zero (0). Produrrà l’effetto di righe non congelate
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; |