# GrapeCity.Documents.Word.Templates.TemplateError

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Templates_TemplateError" data-uid="GrapeCity.Documents.Word.Templates.TemplateError" class="text-break">TemplateError Class
</h1>
  <div class="markdown level0 summary"><p>Represents information about an error in a data template definition.
Used for diagnostics and debugging templates, see <a class="xref" href="GrapeCity.Documents.Word.Templates.DataTemplate.Validate.html#GrapeCity_Documents_Word_Templates_DataTemplate_Validate_System_Boolean_">Validate(bool)</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">TemplateError</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.Templates.html">GrapeCity.Documents.Word.Templates</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Templates_TemplateError_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TemplateError</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TemplateError</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_TemplateError_ErrorDescription" data-uid="GrapeCity.Documents.Word.Templates.TemplateError.ErrorDescription">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.TemplateError.ErrorDescription.html#GrapeCity_Documents_Word_Templates_TemplateError_ErrorDescription">ErrorDescription</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the description of the error.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_TemplateError_TemplateRange" data-uid="GrapeCity.Documents.Word.Templates.TemplateError.TemplateRange">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.TemplateError.TemplateRange.html#GrapeCity_Documents_Word_Templates_TemplateError_TemplateRange">TemplateRange</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the range containing the incorrect template.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Templates_TemplateError_TemplateText" data-uid="GrapeCity.Documents.Word.Templates.TemplateError.TemplateText">
          <a class="xref" href="GrapeCity.Documents.Word.Templates.TemplateError.TemplateText.html#GrapeCity_Documents_Word_Templates_TemplateError_TemplateText">TemplateText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the text of the incorrect template.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
