# C1.WPF.Excel.XLStyle.Rotation

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Excel_XLStyle_Rotation_" data-uid="C1.WPF.Excel.XLStyle.Rotation*">Rotation Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Excel_XLStyle_Rotation_" data-uid="C1.WPF.Excel.XLStyle.Rotation*"></a>
<h4 id="C1_WPF_Excel_XLStyle_Rotation" data-uid="C1.WPF.Excel.XLStyle.Rotation">Rotation</h4>
<div class="markdown level1 summary"><p>Gets or sets the rotation for this <a class="xref" href="C1.WPF.Excel.XLStyle.html">XLStyle</a>, in degrees.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Rotation { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Rotation As Integer</code></pre>
</div>
<h5 id="C1_WPF_Excel_XLStyle_Rotation_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;This property should be set to values between 0 and 180, or 255, 
</code></pre>
<p>as explained below:</p>
<p>Zero means no rotation.</p>
<p>1-90 means 1 to 90 degrees counter-clockwise (90 causes text to be
displayed in the vertical direction going up the cell).</p>
<p>91-180 means 1 to 90 degrees clockwise (180 causes text to be
displayed in the vertical direction going down the cell).</p>
<p>255 causes letters to be stacked top to bottom and not rotated.</p>
The rotation always zero if the horizontal alignment is set to Fill or Selection.
</div>
</div>
