title: How to set center vertical alignment of MergeCell by OpenXml with C#
body: <p>How to set center vertical alignment of MergeCell by OpenXml with C#, below code snippet is my MergeCell implementation in C#</p>
  <pre><code>mergeCells.Append(new MergeCell() { Reference = new StringValue(&quot;A2:A4&quot;) });
  
  worksheetPart.Worksheet.InsertAfter(mergeCells, worksheetPart.Worksheet.Elements&lt;SheetData&gt;().First());
  </code></pre>
  <p>But the text value in merged cell was moved to right corner, how can I move to center of merged cell?</p>
  <p><a href="https://i.stack.imgur.com/bwHAk.png" rel="nofollow noreferrer">output cell</a></p>
  <p>Thank you in advance</p>