# GrapeCity.Spreadsheet.Drawing.IShapes.AddTextEffect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddTextEffect_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddTextEffect*">AddTextEffect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapes_AddTextEffect_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddTextEffect*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddTextEffect_GrapeCity_Spreadsheet_Drawing_PresetTextEffect_System_String_System_String_System_Double_System_Boolean_System_Boolean_System_Double_System_Double_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddTextEffect(GrapeCity.Spreadsheet.Drawing.PresetTextEffect,System.String,System.String,System.Double,System.Boolean,System.Boolean,System.Double,System.Double)">AddTextEffect(PresetTextEffect, string, string, double, bool, bool, double, double)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> object that represents the new text effect object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IShape AddTextEffect(PresetTextEffect textEffect, string text, string fontName, double fontSize, bool bold = false, bool italic = false, double x = NaN, double y = NaN)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function AddTextEffect(textEffect As PresetTextEffect, text As String, fontName As String, fontSize As Double, Optional bold As Boolean = False, Optional italic As Boolean = False, Optional x As Double = NaN, Optional y As Double = NaN) As IShape</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.Spreadsheet.Drawing.PresetTextEffect.html">PresetTextEffect</a></td>
      <td><span class="parametername">textEffect</span></td>
      <td><p>The preset text effect.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The text in the shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">fontName</span></td>
      <td><p>The name of the font used in the shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">fontSize</span></td>
      <td><p>The size (in points) of the font used in the shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bold</span></td>
      <td><p>The font used in the shape to bold.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">italic</span></td>
      <td><p>The font used in the shape to italic.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The position (in pixels) of the upper-left corner of the shape's bounding box relative to the upper-left corner of the document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The position (in pixels) of the upper-left corner of the shape's bounding box relative to the top of the document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a></td>
      <td><p>The created <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
