# GrapeCity.Documents.Word.FormattingBag.HasDirectFormattingWithIgnore

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_FormattingBag_HasDirectFormattingWithIgnore_" data-uid="GrapeCity.Documents.Word.FormattingBag.HasDirectFormattingWithIgnore*">HasDirectFormattingWithIgnore Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_FormattingBag_HasDirectFormattingWithIgnore_" data-uid="GrapeCity.Documents.Word.FormattingBag.HasDirectFormattingWithIgnore*"></a>
<h4 id="GrapeCity_Documents_Word_FormattingBag_HasDirectFormattingWithIgnore_System_String_System_String_" data-uid="GrapeCity.Documents.Word.FormattingBag.HasDirectFormattingWithIgnore(System.String,System.String)">HasDirectFormattingWithIgnore(string, string)</h4>
<div class="markdown level1 summary"><p>Gets whether the attached <a class="xref" href="GrapeCity.Documents.Word.FormattingBag.html">FormattingBag</a> class has direct formatting in the shape except ignored key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected bool HasDirectFormattingWithIgnore(string baseKey, string ignoredKeyPart)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function HasDirectFormattingWithIgnore(baseKey As String, ignoredKeyPart As String) 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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">baseKey</span></td>
      <td><p>The base formatting key of the class.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">ignoredKeyPart</span></td>
      <td><p>The ignored formatting key (or key part) of the class.</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 attached <a class="xref" href="GrapeCity.Documents.Word.FormattingBag.html">FormattingBag</a> class has direct formatting in the shape, otherwise false. Keys contained <code class="paramref">ignoredKeyPart</code> are ignored.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_FormattingBag_HasDirectFormattingWithIgnore_" data-uid="GrapeCity.Documents.Word.FormattingBag.HasDirectFormattingWithIgnore*"></a>
<h4 id="GrapeCity_Documents_Word_FormattingBag_HasDirectFormattingWithIgnore_System_String_System_String_System_String_" data-uid="GrapeCity.Documents.Word.FormattingBag.HasDirectFormattingWithIgnore(System.String,System.String,System.String)">HasDirectFormattingWithIgnore(string, string, string)</h4>
<div class="markdown level1 summary"><p>Gets whether the attached <a class="xref" href="GrapeCity.Documents.Word.FormattingBag.html">FormattingBag</a> class has direct formatting in the shape except ignored key.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected bool HasDirectFormattingWithIgnore(string parentKey, string baseKey, string ignoredKeyPart)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function HasDirectFormattingWithIgnore(parentKey As String, baseKey As String, ignoredKeyPart As String) 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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">parentKey</span></td>
      <td><p>The parent key of the object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">baseKey</span></td>
      <td><p>The base formatting key of the class.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">ignoredKeyPart</span></td>
      <td><p>The ignored formatting key (or key part) of the class.</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 attached <a class="xref" href="GrapeCity.Documents.Word.FormattingBag.html">FormattingBag</a> class has direct formatting in the shape, otherwise false. Keys contained <code class="paramref">ignoredKeyPart</code> are ignored.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
