# C1.Util.DX.Direct2D.PathGeometry

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_PathGeometry" data-uid="C1.Util.DX.Direct2D.PathGeometry" class="text-break">PathGeometry Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1PathGeometry</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.Direct2D.Resource.html">Resource</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.Direct2D.Geometry.html">Geometry</a></div>
    <div class="level6"><span class="xref">PathGeometry</span></div>
      <div class="level7"><a class="xref" href="C1.Util.DX.Direct2D.PathGeometry1.html">PathGeometry1</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_PathGeometry_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;2cd906a5-12e2-11dc-9fed-001143a055f9&quot;)]
public class PathGeometry : Geometry, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;2cd906a5-12e2-11dc-9fed-001143a055f9&quot;)&gt;
Public Class PathGeometry
    Inherits Geometry
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.PathGeometry.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.-ctor.html#C1_Util_DX_Direct2D_PathGeometry__ctor_System_IntPtr_">PathGeometry(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.html">PathGeometry</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry_Create_C1_Util_DX_Direct2D_Factory_" data-uid="C1.Util.DX.Direct2D.PathGeometry.Create(C1.Util.DX.Direct2D.Factory)">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.Create.html#C1_Util_DX_Direct2D_PathGeometry_Create_C1_Util_DX_Direct2D_Factory_">Create(Factory)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an empty <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.html">PathGeometry</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry_GetFigureCount" data-uid="C1.Util.DX.Direct2D.PathGeometry.GetFigureCount">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.GetFigureCount.html#C1_Util_DX_Direct2D_PathGeometry_GetFigureCount">GetFigureCount()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1PathGeometry::GetFigureCount([Out] unsigned int* count)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry_GetSegmentCount" data-uid="C1.Util.DX.Direct2D.PathGeometry.GetSegmentCount">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.GetSegmentCount.html#C1_Util_DX_Direct2D_PathGeometry_GetSegmentCount">GetSegmentCount()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1PathGeometry::GetSegmentCount([Out] unsigned int* count)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry_Open" data-uid="C1.Util.DX.Direct2D.PathGeometry.Open">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.Open.html#C1_Util_DX_Direct2D_PathGeometry_Open">Open()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1PathGeometry::Open([Out] ID2D1GeometrySink** geometrySink)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry_Stream_C1_Util_DX_Direct2D_GeometrySink_" data-uid="C1.Util.DX.Direct2D.PathGeometry.Stream(C1.Util.DX.Direct2D.GeometrySink)">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.Stream.html#C1_Util_DX_Direct2D_PathGeometry_Stream_C1_Util_DX_Direct2D_GeometrySink_">Stream(GeometrySink)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the contents of the path geometry to the specified <a class="xref" href="C1.Util.DX.Direct2D.GeometrySink.html">GeometrySink</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_PathGeometry_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_PathGeometry" data-uid="C1.Util.DX.Direct2D.PathGeometry.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.PathGeometry">
          <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.op_Explicit.html#C1_Util_DX_Direct2D_PathGeometry_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_PathGeometry">explicit operator PathGeometry(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a> to <a class="xref" href="C1.Util.DX.Direct2D.PathGeometry.html">PathGeometry</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
