# GrapeCity.Documents.Common.Unit.UnitTypeToString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_Unit_UnitTypeToString_" data-uid="GrapeCity.Documents.Common.Unit.UnitTypeToString*">UnitTypeToString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_Unit_UnitTypeToString_" data-uid="GrapeCity.Documents.Common.Unit.UnitTypeToString*"></a>
<h4 id="GrapeCity_Documents_Common_Unit_UnitTypeToString_GrapeCity_Documents_Common_UnitTypeEnum_" data-uid="GrapeCity.Documents.Common.Unit.UnitTypeToString(GrapeCity.Documents.Common.UnitTypeEnum)">UnitTypeToString(UnitTypeEnum)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="GrapeCity.Documents.Common.UnitTypeEnum.html">UnitTypeEnum</a> value to a string representation as in
the following table:</p>
<ul><li><span class="term">Document</span>"doc"</li><li><span class="term">Inch</span>"in"</li><li><span class="term">Millimeter</span>"mm"</li><li><span class="term">Pica</span>"pc"</li><li><span class="term">Point</span>"pt"</li><li><span class="term">Twip</span>"tw"</li><li><span class="term">InHs</span>"inhs"</li><li><span class="term">Centimeters</span>"cm"</li><li><span class="term">Dip</span>"dip"</li></ul>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static string UnitTypeToString(UnitTypeEnum value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function UnitTypeToString(value As UnitTypeEnum) As String</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.Common.UnitTypeEnum.html">UnitTypeEnum</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Common.UnitTypeEnum.html">UnitTypeEnum</a> to convert.</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.string">string</a></td>
      <td><p>The string representing <code class="paramref">value</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
