# GrapeCity.Documents.Pdf.PdfEnum-1.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor*">PdfEnum Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor__0_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor(`0)">PdfEnum(TEnum)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.PdfEnum-1.html">PdfEnum&lt;TEnum&gt;</a> struct
using a <code class="typeparamref">TEnum</code> value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PdfEnum(TEnum value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value As TEnum)</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><span class="xref">TEnum</span></td>
      <td><span class="parametername">value</span></td>
      <td><p>The <code class="typeparamref">TEnum</code> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor_GrapeCity_Documents_Pdf_Spec_PdfName_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor(GrapeCity.Documents.Pdf.Spec.PdfName)">PdfEnum(PdfName)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.PdfEnum-1.html">PdfEnum&lt;TEnum&gt;</a> struct
using a <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> object.
The passed <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> is converted to <code class="typeparamref">TEnum</code> if possible.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PdfEnum(PdfName value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value As PdfName)</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.Pdf.Spec.PdfName.html">PdfName</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The string representing a <code class="typeparamref">TEnum</code> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor*"></a>
<h4 id="GrapeCity_Documents_Pdf_PdfEnum_1__ctor_System_String_" data-uid="GrapeCity.Documents.Pdf.PdfEnum`1.#ctor(System.String)">PdfEnum(string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.PdfEnum-1.html">PdfEnum&lt;TEnum&gt;</a> struct
using a string.
The passed string is converted to <code class="typeparamref">TEnum</code> if possible.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PdfEnum(string value)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(value 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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The string representing a <code class="typeparamref">TEnum</code> value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
