# C1.Util.DX.Direct2D.Factory1.RegisterEffectFromString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Factory1_RegisterEffectFromString_" data-uid="C1.Util.DX.Direct2D.Factory1.RegisterEffectFromString*">RegisterEffectFromString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Factory1_RegisterEffectFromString_" data-uid="C1.Util.DX.Direct2D.Factory1.RegisterEffectFromString*"></a>
<h4 id="C1_Util_DX_Direct2D_Factory1_RegisterEffectFromString_System_Guid_System_String_C1_Util_DX_Direct2D_PropertyBinding___System_Int32_C1_Util_DX_FunctionCallback_" data-uid="C1.Util.DX.Direct2D.Factory1.RegisterEffectFromString(System.Guid,System.String,C1.Util.DX.Direct2D.PropertyBinding[],System.Int32,C1.Util.DX.FunctionCallback)">RegisterEffectFromString(Guid, string, PropertyBinding[], int, FunctionCallback)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1Factory1::RegisterEffectFromString([In] const GUID&amp; classId,[In] const wchar_t* propertyXml,[In, Buffer, Optional] const D2D1_PROPERTY_BINDING* bindings,[In] unsigned int bindingsCount,[In] const __function__stdcall* effectFactory)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void RegisterEffectFromString(Guid classId, string ropertyXmlRef, PropertyBinding[] bindings, int bindingsCount, FunctionCallback effectFactory)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub RegisterEffectFromString(classId As Guid, ropertyXmlRef As String, bindings As PropertyBinding(), bindingsCount As Integer, effectFactory As FunctionCallback)</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.guid">Guid</a></td>
      <td><span class="parametername">classId</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">ropertyXmlRef</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.PropertyBinding.html">PropertyBinding</a>[]</td>
      <td><span class="parametername">bindings</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">bindingsCount</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.FunctionCallback.html">FunctionCallback</a></td>
      <td><span class="parametername">effectFactory</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
