# C1.Util.DX.Direct2D.Properties.GetValueByName

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Properties_GetValueByName_" data-uid="C1.Util.DX.Direct2D.Properties.GetValueByName*">GetValueByName Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Properties_GetValueByName_" data-uid="C1.Util.DX.Direct2D.Properties.GetValueByName*"></a>
<h4 id="C1_Util_DX_Direct2D_Properties_GetValueByName_System_String_C1_Util_DX_Direct2D_PropertyType_System_IntPtr_System_Int32_" data-uid="C1.Util.DX.Direct2D.Properties.GetValueByName(System.String,C1.Util.DX.Direct2D.PropertyType,System.IntPtr,System.Int32)">GetValueByName(string, PropertyType, IntPtr, int)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Properties::GetValueByName([In] const wchar_t* name,[In] D2D1_PROPERTY_TYPE type,[Out, Buffer] void* data,[In] unsigned int dataSize)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetValueByName(string name, PropertyType type, IntPtr data, int dataSize)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub GetValueByName(name As String, type As PropertyType, data As IntPtr, dataSize 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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.PropertyType.html">PropertyType</a></td>
      <td><span class="parametername">type</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">data</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">dataSize</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
