# GrapeCity.Documents.Word.Shape.ApplyThemedStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle*">ApplyThemedStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle*"></a>
<h4 id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedShapeStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle(GrapeCity.Documents.Word.ThemedShapeStyle)">ApplyThemedStyle(ThemedShapeStyle)</h4>
<div class="markdown level1 summary"><p>Applies a predefined <a class="xref" href="GrapeCity.Documents.Word.ThemedShapeStyle.html">ThemedShapeStyle</a> to this shape.</p>
<p>Note that <a class="xref" href="GrapeCity.Documents.Word.ThemedShapeStyle.html">ThemedShapeStyle</a>s cannot be applied to line geometries (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.IsLineGeometry.html#GrapeCity_Documents_Word_Extensions_IsLineGeometry_GrapeCity_Documents_Word_GeometryType_">IsLineGeometry(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape is a line geometry, this method will do nothing and return false.
For line geometries use <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyThemedStyle.html#GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedLineStyle_">ApplyThemedStyle(ThemedLineStyle)</a> instead.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ApplyThemedStyle(ThemedShapeStyle themedStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ApplyThemedStyle(themedStyle As ThemedShapeStyle) As Boolean</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.Word.ThemedShapeStyle.html">ThemedShapeStyle</a></td>
      <td><span class="parametername">themedStyle</span></td>
      <td><p>The style to apply.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if the style was applied, false otherwise (if this shape is a line geometry).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle*"></a>
<h4 id="GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedLineStyle_" data-uid="GrapeCity.Documents.Word.Shape.ApplyThemedStyle(GrapeCity.Documents.Word.ThemedLineStyle)">ApplyThemedStyle(ThemedLineStyle)</h4>
<div class="markdown level1 summary"><p>Applies a predefined <a class="xref" href="GrapeCity.Documents.Word.ThemedLineStyle.html">ThemedLineStyle</a> to this shape.</p>
<p>Note that <a class="xref" href="GrapeCity.Documents.Word.ThemedLineStyle.html">ThemedLineStyle</a>s cannot be applied to non-line geometries (see <a class="xref" href="GrapeCity.Documents.Word.Extensions.IsLineGeometry.html#GrapeCity_Documents_Word_Extensions_IsLineGeometry_GrapeCity_Documents_Word_GeometryType_">IsLineGeometry(GeometryType)</a>).
If <a class="xref" href="GrapeCity.Documents.Word.Shape.GeometryType.html#GrapeCity_Documents_Word_Shape_GeometryType">GeometryType</a> of this shape is not a line geometry, this method will do nothing and return false.
For line geometries use <a class="xref" href="GrapeCity.Documents.Word.Shape.ApplyThemedStyle.html#GrapeCity_Documents_Word_Shape_ApplyThemedStyle_GrapeCity_Documents_Word_ThemedShapeStyle_">ApplyThemedStyle(ThemedShapeStyle)</a> instead.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ApplyThemedStyle(ThemedLineStyle themedStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ApplyThemedStyle(themedStyle As ThemedLineStyle) As Boolean</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.Word.ThemedLineStyle.html">ThemedLineStyle</a></td>
      <td><span class="parametername">themedStyle</span></td>
      <td><p>The style to apply.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if the style was applied, false otherwise (if this shape is not a line geometry).</p>
</td>
    </tr>
  </tbody>
</table>
</div>
