# C1.Xamarin.Forms.Core.C1InputEventArgs.GetPosition

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Xamarin_Forms_Core_C1InputEventArgs_GetPosition_" data-uid="C1.Xamarin.Forms.Core.C1InputEventArgs.GetPosition*">GetPosition Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Xamarin_Forms_Core_C1InputEventArgs_GetPosition_" data-uid="C1.Xamarin.Forms.Core.C1InputEventArgs.GetPosition*"></a>
<h4 id="C1_Xamarin_Forms_Core_C1InputEventArgs_GetPosition_Xamarin_Forms_View_" data-uid="C1.Xamarin.Forms.Core.C1InputEventArgs.GetPosition(Xamarin.Forms.View)">GetPosition(View)</h4>
<div class="markdown level1 summary"><p>Gets the position of the pointer performing the drag gesture relatively to the specified element.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Point GetPosition(View relativeTo)</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><span class="xref">View</span></td>
      <td><span class="parametername">relativeTo</span></td>
      <td><p>Any visual object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.</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><span class="xref">Point</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Xamarin_Forms_Core_C1InputEventArgs_GetPosition_" data-uid="C1.Xamarin.Forms.Core.C1InputEventArgs.GetPosition*"></a>
<h4 id="C1_Xamarin_Forms_Core_C1InputEventArgs_GetPosition_System_Object_Xamarin_Forms_View_" data-uid="C1.Xamarin.Forms.Core.C1InputEventArgs.GetPosition(System.Object,Xamarin.Forms.View)">GetPosition(object, View)</h4>
<div class="markdown level1 summary"><p>Gets the position of the pointer or finger.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Point GetPosition(object args, View relativeTo)</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.object">object</a></td>
      <td><span class="parametername">args</span></td>
      <td><p>The <a class="xref" href="C1.Xamarin.Forms.Core.C1InputEventArgs.OriginalEventArgs.html#C1_Xamarin_Forms_Core_C1InputEventArgs_OriginalEventArgs">OriginalEventArgs</a> instance containing the manipulation data.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">View</span></td>
      <td><span class="parametername">relativeTo</span></td>
      <td><p>Any visual object that is connected to the same object tree. To specify the object relative to the overall coordinate system, use a relativeTo value of null.</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><span class="xref">Point</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
