# C1.Util.DX.Direct2D.Properties.GetPropertyName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Properties_GetPropertyName_" data-uid="C1.Util.DX.Direct2D.Properties.GetPropertyName*">GetPropertyName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Properties_GetPropertyName_" data-uid="C1.Util.DX.Direct2D.Properties.GetPropertyName*"></a>
<h4 id="C1_Util_DX_Direct2D_Properties_GetPropertyName_System_Int32_" data-uid="C1.Util.DX.Direct2D.Properties.GetPropertyName(System.Int32)">GetPropertyName(int)</h4>
<div class="markdown level1 summary"><p>Gets the number of characters for the given property name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string GetPropertyName(int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPropertyName(index As Integer) 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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The index of the property for which the name is being returned.</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 name of the property</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Util_DX_Direct2D_Properties_GetPropertyName_System_Int32__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method returns an empty string if index is invalid.</p>
</div>


<a id="C1_Util_DX_Direct2D_Properties_GetPropertyName_" data-uid="C1.Util.DX.Direct2D.Properties.GetPropertyName*"></a>
<h4 id="C1_Util_DX_Direct2D_Properties_GetPropertyName_System_Int32_System_IntPtr_System_Int32_" data-uid="C1.Util.DX.Direct2D.Properties.GetPropertyName(System.Int32,System.IntPtr,System.Int32)">GetPropertyName(int, nint, int)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Properties::GetPropertyName([In] unsigned int index,[Out, Buffer] wchar_t* name,[In] unsigned int nameCount)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetPropertyName(int index, nint name, int nameCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetPropertyName(index As Integer, name As IntPtr, nameCount As Integer)</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.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a></td>
      <td><span class="parametername">name</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">nameCount</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
