Ottieni la convalida della cella nei file ODS
Contents
[
Hide
]
Ottieni la Convalida Cellulare nei File ODS
Con Aspose.Cells, è possibile ottenere la convalida applicata a una cella nei file ODS. A questo scopo, l’API fornisce il metodo get_validation della classe Cell.
Il seguente esempio di codice dimostra l’uso del metodo get_validation caricando il file ODS di origine e leggendo la convalida della cella A9.
Codice di Esempio
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
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Load source Excel file | |
workbook = Workbook("SampleBook1.ods") | |
# Access first worksheet | |
worksheet = workbook.worksheets[0] | |
cell = worksheet.cells.get("A9") | |
if cell.get_validation() != None: | |
print(cell.get_validation().type) |