Skip to content

Commit 90abe41

Browse files
Update Program.cs
1 parent add36f4 commit 90abe41

File tree

1 file changed

+4
-4
lines changed
  • Paragraphs/Adjust-first-column-width/.NET/Adjust-first-column-width

1 file changed

+4
-4
lines changed

Paragraphs/Adjust-first-column-width/.NET/Adjust-first-column-width/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static void Main(string[] args)
1717
List<Entity> tables = document.FindAllItemsByProperty(EntityType.Table, null, null);
1818

1919
// Initialize variables
20-
bool isFisrtCell = false; // Flag to identify the first cell in each row
20+
bool isFirstCell = false; // Flag to identify the first cell in each row
2121
WTableCell firstCellReference = new WTableCell(document); // To store the reference to the first cell
2222
float totalCellWidth = 0; // Accumulate width of cells except the first one
2323

@@ -29,15 +29,15 @@ static void Main(string[] args)
2929
{
3030
// Reset variables for each row
3131
totalCellWidth = 0;
32-
isFisrtCell = false;
32+
isFirstCell = false;
3333

3434
// Iterate through each cell in the row
3535
foreach (WTableCell cell in row.Cells)
3636
{
37-
if (!isFisrtCell)
37+
if (!isFirstCell)
3838
{
3939
// Identify the first cell in the row
40-
isFisrtCell = true;
40+
isFirstCell = true;
4141
firstCellReference = cell; // Store the first cell reference
4242
}
4343
else

0 commit comments

Comments
 (0)