# C1.Util.DX.Direct2D.CustomEffect.SetGraph

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_CustomEffect_SetGraph_" data-uid="C1.Util.DX.Direct2D.CustomEffect.SetGraph*">SetGraph Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_CustomEffect_SetGraph_" data-uid="C1.Util.DX.Direct2D.CustomEffect.SetGraph*"></a>
<h4 id="C1_Util_DX_Direct2D_CustomEffect_SetGraph_C1_Util_DX_Direct2D_TransformGraph_" data-uid="C1.Util.DX.Direct2D.CustomEffect.SetGraph(C1.Util.DX.Direct2D.TransformGraph)">SetGraph(TransformGraph)</h4>
<div class="markdown level1 summary"><p>The renderer calls this method to provide the effect implementation with a way to specify its transform graph and transform graph changes.
The renderer calls this method when: 1) When the effect is first initialized. 2) If the number of inputs to the effect changes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">int SetGraph(TransformGraph transformGraph)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function SetGraph(transformGraph As TransformGraph) 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="C1.Util.DX.Direct2D.TransformGraph.html">TransformGraph</a></td>
      <td><span class="parametername">transformGraph</span></td>
      <td><p>The graph to which the effect describes its transform topology through the SetDescription call..</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.int32">int</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
