Created
April 9, 2024 20:12
-
-
Save bjoerntx/f5b938369b2fcdd26b6ea73453b32294 to your computer and use it in GitHub Desktop.
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
public void ApplyTableStyle(Table table, TableStyle tableStyle) | |
{ | |
// loop through rows and check for header row | |
foreach (TableRow row in table.Rows) | |
{ | |
if (row.IsHeader) | |
{ | |
row.CellFormat = tableStyle.HeaderRowFormat; | |
} | |
else | |
{ | |
row.CellFormat = tableStyle.TableRowFormat; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment