title: How to set font size in empty cell of a Word table using the Open XML SDK?
body: <p>I am creating a table in OpenXml with C# in a Word file. I used some code mentioned in <a href="https://stackoverflow.com/questions/44692925/open-xml-change-fontsize-of-table">this</a> question to set the fontsize of the text in the cells. It works fine for the cells that contain text, but the empty cells seem to be given the normal style, and with that a bigger font size, which makes the row height bigger.</p>
  
  <p>Here is my sample code with a single row with a single cell, where the font size should be 9:</p>
  
  <pre><code>TableRow tr = new TableRow();
  TableCell tc = new TableCell();
  Paragraph par = new Paragraph();
  Run run = new Run();
  Text txt = new Text("txt");
  
  RunProperties runProps = new RunProperties();
  FontSize fontSize = new Fontsize() { Val = "18" }; // font size 9
  
  runProps.Append(fontSize);
  
  run.Append(runProps);
  run.Append(txt);
  
  para.Append(run);
  tc.Append(para);
  tr.Append(tc);
  </code></pre>
  
  <p>Here is an example of the resulting table. As you can see the middle row is taller than the others. In the cells that say "txt" the font size is 9, but in the blank cell the font size is 11. The code above is used for all the cells, where the empty cell simply has the text "". When I looked at the file with the Open XML Tool, I can see that the RunProperties with value 18 is there for all the cells including the empty one.</p>
  
  <p><a href="https://i.stack.imgur.com/QFw4Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QFw4Z.png" alt="Resulting table"></a></p>
  
  <p><strong>How do I set the font size of a cell without displaying any text?</strong></p>