# C1.Util.DX.Direct2D.Effect.CreateCustom

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_Effect_CreateCustom_" data-uid="C1.Util.DX.Direct2D.Effect.CreateCustom*">CreateCustom Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_Effect_CreateCustom_" data-uid="C1.Util.DX.Direct2D.Effect.CreateCustom*"></a>
<h4 id="C1_Util_DX_Direct2D_Effect_CreateCustom__1_C1_Util_DX_Direct2D_DeviceContext_" data-uid="C1.Util.DX.Direct2D.Effect.CreateCustom``1(C1.Util.DX.Direct2D.DeviceContext)">CreateCustom&lt;T&gt;(DeviceContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a custom <a class="xref" href="C1.Util.DX.Direct2D.Effect.html">Effect</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Effect CreateCustom&lt;T&gt;(DeviceContext deviceContext) where T : CustomEffect</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreateCustom(Of T As CustomEffect)(deviceContext As DeviceContext) As Effect</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="C1.Util.DX.Direct2D.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>The device context.</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="C1.Util.DX.Direct2D.Effect.html">Effect</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_Effect_CreateCustom_" data-uid="C1.Util.DX.Direct2D.Effect.CreateCustom*"></a>
<h4 id="C1_Util_DX_Direct2D_Effect_CreateCustom__1_C1_Util_DX_Direct2D_EffectContext_" data-uid="C1.Util.DX.Direct2D.Effect.CreateCustom``1(C1.Util.DX.Direct2D.EffectContext)">CreateCustom&lt;T&gt;(EffectContext)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of a custom <a class="xref" href="C1.Util.DX.Direct2D.Effect.html">Effect</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Effect CreateCustom&lt;T&gt;(EffectContext effectContext) where T : CustomEffect</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreateCustom(Of T As CustomEffect)(effectContext As EffectContext) As Effect</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="C1.Util.DX.Direct2D.EffectContext.html">EffectContext</a></td>
      <td><span class="parametername">effectContext</span></td>
      <td><p>The effect context.</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="C1.Util.DX.Direct2D.Effect.html">Effect</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
