# GrapeCity.Documents.Drawing.GcGraphics.DrawSlantedText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_GcGraphics_DrawSlantedText_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.DrawSlantedText*">DrawSlantedText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_GcGraphics_DrawSlantedText_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.DrawSlantedText*"></a>
<h4 id="GrapeCity_Documents_Drawing_GcGraphics_DrawSlantedText_GrapeCity_Documents_Text_TextLayout_System_Int32_System_Boolean_System_Drawing_RectangleF_GrapeCity_Documents_Drawing_SlantedTextAlignment_" data-uid="GrapeCity.Documents.Drawing.GcGraphics.DrawSlantedText(GrapeCity.Documents.Text.TextLayout,System.Int32,System.Boolean,System.Drawing.RectangleF,GrapeCity.Documents.Drawing.SlantedTextAlignment)">DrawSlantedText(TextLayout, int, bool, RectangleF, SlantedTextAlignment)</h4>
<div class="markdown level1 summary"><p>Draws rotated text inside a slanted rectangle.</p>
<p>Note that the original <code class="paramref">textLayout</code> will be changed by this method. If necessary, create a clone in advance.</p>
<p>Also note that the values of the following properties are ignored: <a class="xref" href="GrapeCity.Documents.Text.TextLayout.MaxWidth.html#GrapeCity_Documents_Text_TextLayout_MaxWidth">MaxWidth</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.MaxHeight.html#GrapeCity_Documents_Text_TextLayout_MaxHeight">MaxHeight</a>,
<a class="xref" href="GrapeCity.Documents.Text.TextLayout.FlowDirection.html#GrapeCity_Documents_Text_TextLayout_FlowDirection">FlowDirection</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.CanSkipFirstLineWithIndentation.html#GrapeCity_Documents_Text_TextLayout_CanSkipFirstLineWithIndentation">CanSkipFirstLineWithIndentation</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.ObjectRects.html#GrapeCity_Documents_Text_TextLayout_ObjectRects">ObjectRects</a>,
<a class="xref" href="GrapeCity.Documents.Text.TextLayout.ParagraphAlignment.html#GrapeCity_Documents_Text_TextLayout_ParagraphAlignment">ParagraphAlignment</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.MarginLeft.html#GrapeCity_Documents_Text_TextLayout_MarginLeft">MarginLeft</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.MarginRight.html#GrapeCity_Documents_Text_TextLayout_MarginRight">MarginRight</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.MarginTop.html#GrapeCity_Documents_Text_TextLayout_MarginTop">MarginTop</a>,
<a class="xref" href="GrapeCity.Documents.Text.TextLayout.MarginBottom.html#GrapeCity_Documents_Text_TextLayout_MarginBottom">MarginBottom</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.ColumnWidth.html#GrapeCity_Documents_Text_TextLayout_ColumnWidth">ColumnWidth</a>, <a class="xref" href="GrapeCity.Documents.Text.TextLayout.RowHeight.html#GrapeCity_Documents_Text_TextLayout_RowHeight">RowHeight</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawSlantedText(TextLayout textLayout, int angle, bool verticalStacking, RectangleF rect, SlantedTextAlignment alignment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawSlantedText(textLayout As TextLayout, angle As Integer, verticalStacking As Boolean, rect As RectangleF, alignment As SlantedTextAlignment)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a></td>
      <td><span class="parametername">textLayout</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Text.TextLayout.html">TextLayout</a> to draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">angle</span></td>
      <td><p>The text rotation angle, in degrees. The expected range is [-90, +90].</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">verticalStacking</span></td>
      <td><p>If <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>, text lines are stacked horizontally along the top and bottom sides of <code class="paramref">rect</code>.
If <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>, the lines are stacked vertically along the left and right sides of the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The target rectangle to be slanted with text.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.SlantedTextAlignment.html">SlantedTextAlignment</a></td>
      <td><span class="parametername">alignment</span></td>
      <td><p>Alignment of the text in the slanted rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
