# GrapeCity.Documents.Text.TextFormat.ScriptCodeToTag

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Text_TextFormat_ScriptCodeToTag_" data-uid="GrapeCity.Documents.Text.TextFormat.ScriptCodeToTag*">ScriptCodeToTag Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Text_TextFormat_ScriptCodeToTag_" data-uid="GrapeCity.Documents.Text.TextFormat.ScriptCodeToTag*"></a>
<h4 id="GrapeCity_Documents_Text_TextFormat_ScriptCodeToTag_GrapeCity_Documents_Text_ScriptCode_System_Boolean_" data-uid="GrapeCity.Documents.Text.TextFormat.ScriptCodeToTag(GrapeCity.Documents.Text.ScriptCode,System.Boolean)">ScriptCodeToTag(ScriptCode, bool)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="GrapeCity.Documents.Text.ScriptCode.html">ScriptCode</a> value to the corresponding <a class="xref" href="GrapeCity.Documents.Text.ScriptTag.html">ScriptTag</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static ScriptTag ScriptCodeToTag(ScriptCode scriptCode, bool useOldTags = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ScriptCodeToTag(scriptCode As ScriptCode, Optional useOldTags As Boolean = False) As ScriptTag</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.ScriptCode.html">ScriptCode</a></td>
      <td><span class="parametername">scriptCode</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Text.ScriptCode.html">ScriptCode</a> value to convert.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useOldTags</span></td>
      <td><p>Indicates whether the following scripts should be converted to old tags: Bengali, Devanagari, Gujarati, Gurmukhi, Kannada, Malayalam, Myanmar, Odia, Tamil, Telugu.</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.Documents.Text.ScriptTag.html">ScriptTag</a></td>
      <td><p>The converted <a class="xref" href="GrapeCity.Documents.Text.ScriptTag.html">ScriptTag</a> value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
