UPDATE: Adds ability to show/hide grid lines (#71)

This commit is contained in:
Nicolás Hatcher Andrés
2024-05-26 21:28:00 +02:00
committed by GitHub
parent 49c3b14bf0
commit b37397acb8
11 changed files with 133 additions and 1 deletions

View File

@@ -683,6 +683,13 @@ impl Model {
Err(format!("Invalid color: {}", color))
}
/// Makes the grid lines in the sheet visible (`true`) or hidden (`false`)
pub fn set_show_grid_lines(&mut self, sheet: u32, show_grid_lines: bool) -> Result<(), String> {
let worksheet = self.workbook.worksheet_mut(sheet)?;
worksheet.show_grid_lines = show_grid_lines;
Ok(())
}
fn get_cell_value(&self, cell: &Cell, cell_reference: CellReferenceIndex) -> CalcResult {
use Cell::*;
match cell {