# GrapeCity.Documents.Pdf.Spec.PdfName

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Pdf_Spec_PdfName" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName" class="text-break">PdfName Class
</h1>
  <div class="markdown level0 summary"><p>Represents a PDF Name object.
Technically a PDF name is an immutable array of bytes.
This class overrides and implements:</p>
<ul><li><a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.Equals.html#GrapeCity_Documents_Pdf_Spec_PdfName_Equals_System_Object_">Equals(object)</a></li><li><a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.GetHashCode.html#GrapeCity_Documents_Pdf_Spec_PdfName_GetHashCode">GetHashCode()</a></li><li><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;T&gt;</a></li><li>Equality operator.</li><li>Inequality operator.</li></ul>
</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">PdfName</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Pdf.Spec.IPdfName.html">IPdfName</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Pdf.Spec.html">GrapeCity.Documents.Pdf.Spec</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Pdf.dll</h6>
  <h5 id="GrapeCity_Documents_Pdf_Spec_PdfName_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PdfName : IPdfName, IReadOnlyList&lt;byte&gt;, IReadOnlyCollection&lt;byte&gt;, IEnumerable&lt;byte&gt;, IEnumerable, IEquatable&lt;PdfName&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PdfName
    Implements IPdfName, IReadOnlyList(Of Byte), IReadOnlyCollection(Of Byte), IEnumerable(Of Byte), IEnumerable, IEquatable(Of PdfName)</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName__ctor_System_Byte___" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.#ctor(System.Byte[])">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.-ctor.html#GrapeCity_Documents_Pdf_Spec_PdfName__ctor_System_Byte___">PdfName(byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName__ctor_System_Byte___System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.#ctor(System.Byte[],System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.-ctor.html#GrapeCity_Documents_Pdf_Spec_PdfName__ctor_System_Byte___System_Int32_System_Int32_">PdfName(byte[], int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName__ctor_System_String_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.#ctor(System.String)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.-ctor.html#GrapeCity_Documents_Pdf_Spec_PdfName__ctor_System_String_">PdfName(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_s_EmptyPdfNameArray" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.s_EmptyPdfNameArray">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.s_EmptyPdfNameArray.html">s_EmptyPdfNameArray</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the empty array of <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> objects.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Pdf_Spec_PdfName_Count" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.Count">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.Count.html#GrapeCity_Documents_Pdf_Spec_PdfName_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfString.html">PdfString</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_Item_System_Int32_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.Item.html#GrapeCity_Documents_Pdf_Spec_PdfName_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the byte at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_AreAllPdfNamesUnique_System_Collections_Generic_IList_GrapeCity_Documents_Pdf_Spec_PdfName__" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.AreAllPdfNamesUnique(System.Collections.Generic.IList{GrapeCity.Documents.Pdf.Spec.PdfName})">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.AreAllPdfNamesUnique.html#GrapeCity_Documents_Pdf_Spec_PdfName_AreAllPdfNamesUnique_System_Collections_Generic_IList_GrapeCity_Documents_Pdf_Spec_PdfName__">AreAllPdfNamesUnique(IList&lt;PdfName&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether all <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> objects are unique.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_Contains_System_Byte_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.Contains(System.Byte)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.Contains.html#GrapeCity_Documents_Pdf_Spec_PdfName_Contains_System_Byte_">Contains(byte)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether a byte is in the <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfString.html">PdfString</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_CopyTo_System_Byte___System_Int32_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.CopyTo(System.Byte[],System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.CopyTo.html#GrapeCity_Documents_Pdf_Spec_PdfName_CopyTo_System_Byte___System_Int32_">CopyTo(byte[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the entire <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfString.html">PdfString</a> to a compatible one-dimensional array,
starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_Equals_GrapeCity_Documents_Pdf_Spec_PdfName_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.Equals(GrapeCity.Documents.Pdf.Spec.PdfName)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.Equals.html#GrapeCity_Documents_Pdf_Spec_PdfName_Equals_GrapeCity_Documents_Pdf_Spec_PdfName_">Equals(PdfName)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether this <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> equals to <code class="paramref">value</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_Equals_System_Object_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.Equals.html#GrapeCity_Documents_Pdf_Spec_PdfName_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_GetHashCode" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.GetHashCode">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.GetHashCode.html#GrapeCity_Documents_Pdf_Spec_PdfName_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_GetOrCreate_System_Byte___" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.GetOrCreate(System.Byte[])">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.GetOrCreate.html#GrapeCity_Documents_Pdf_Spec_PdfName_GetOrCreate_System_Byte___">GetOrCreate(byte[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> or returns existing predefined Standard Name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_GetOrCreate_System_Byte___System_Int32_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.GetOrCreate(System.Byte[],System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.GetOrCreate.html#GrapeCity_Documents_Pdf_Spec_PdfName_GetOrCreate_System_Byte___System_Int32_">GetOrCreate(byte[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> or returns existing predefined Standard Name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_GetOrCreate_System_String_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.GetOrCreate(System.String)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.GetOrCreate.html#GrapeCity_Documents_Pdf_Spec_PdfName_GetOrCreate_System_String_">GetOrCreate(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a> or returns existing predefined Standard Name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_IsNullOrEmpty_GrapeCity_Documents_Pdf_Spec_PdfName_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.IsNullOrEmpty(GrapeCity.Documents.Pdf.Spec.PdfName)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.IsNullOrEmpty.html#GrapeCity_Documents_Pdf_Spec_PdfName_IsNullOrEmpty_GrapeCity_Documents_Pdf_Spec_PdfName_">IsNullOrEmpty(PdfName)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if <code class="paramref">value</code> is null or empty (zero length).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_IsValidChar_System_Byte_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.IsValidChar(System.Byte)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.IsValidChar.html#GrapeCity_Documents_Pdf_Spec_PdfName_IsValidChar_System_Byte_">IsValidChar(byte)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the specified byte is valid and can be written to the PDF stream without '#' prefix.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_ToString" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.ToString">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.ToString.html#GrapeCity_Documents_Pdf_Spec_PdfName_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_op_Equality_GrapeCity_Documents_Pdf_Spec_PdfName_GrapeCity_Documents_Pdf_Spec_PdfName_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.op_Equality(GrapeCity.Documents.Pdf.Spec.PdfName,GrapeCity.Documents.Pdf.Spec.PdfName)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.op_Equality.html#GrapeCity_Documents_Pdf_Spec_PdfName_op_Equality_GrapeCity_Documents_Pdf_Spec_PdfName_GrapeCity_Documents_Pdf_Spec_PdfName_">operator ==(PdfName, PdfName)</a>
        </td>
        <td class="markdown level1 summary"><p>The equality operator.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_Spec_PdfName_op_Inequality_GrapeCity_Documents_Pdf_Spec_PdfName_GrapeCity_Documents_Pdf_Spec_PdfName_" data-uid="GrapeCity.Documents.Pdf.Spec.PdfName.op_Inequality(GrapeCity.Documents.Pdf.Spec.PdfName,GrapeCity.Documents.Pdf.Spec.PdfName)">
          <a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.op_Inequality.html#GrapeCity_Documents_Pdf_Spec_PdfName_op_Inequality_GrapeCity_Documents_Pdf_Spec_PdfName_GrapeCity_Documents_Pdf_Spec_PdfName_">operator !=(PdfName, PdfName)</a>
        </td>
        <td class="markdown level1 summary"><p>The inequality operator.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.Documents.Pdf.Spec.IPdfNameExt.AsString.html#GrapeCity_Documents_Pdf_Spec_IPdfNameExt_AsString_GrapeCity_Documents_Pdf_Spec_IPdfName_">IPdfNameExt.AsString(IPdfName)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.Documents.Pdf.Spec.IPdfNameExt.IsNullOrEmpty.html#GrapeCity_Documents_Pdf_Spec_IPdfNameExt_IsNullOrEmpty_GrapeCity_Documents_Pdf_Spec_IPdfName_">IPdfNameExt.IsNullOrEmpty(IPdfName)</a>
  </div>

</div>
