# FarPoint.Win.FpHyperlink.IsPointInLink

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_FpHyperlink_IsPointInLink_" data-uid="FarPoint.Win.FpHyperlink.IsPointInLink*">IsPointInLink Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_FpHyperlink_IsPointInLink_" data-uid="FarPoint.Win.FpHyperlink.IsPointInLink*"></a>
<h4 id="FarPoint_Win_FpHyperlink_IsPointInLink_System_Drawing_Graphics_System_Int32_System_Int32_System_Drawing_Rectangle_System_String_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Windows_Forms_LinkArea___FarPoint_Win_Picture_" data-uid="FarPoint.Win.FpHyperlink.IsPointInLink(System.Drawing.Graphics,System.Int32,System.Int32,System.Drawing.Rectangle,System.String,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,System.Windows.Forms.LinkArea[],FarPoint.Win.Picture)">IsPointInLink(Graphics, int, int, Rectangle, string, Font, HorizontalAlignment, VerticalAlignment, LinkArea[], Picture)</h4>
<div class="markdown level1 summary"><p>Determines if the point is in the text of the link in the hyperlink control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static int IsPointInLink(Graphics g, int x, int y, Rectangle r, string text, Font f, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, LinkArea[] areas, Picture pict)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function IsPointInLink(g As Graphics, x As Integer, y As Integer, r As Rectangle, text As String, f As Font, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, areas As LinkArea(), pict As Picture) 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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>GDI+ graphics surface</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>X-coordinate of point</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>Y-coordinate of point</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">r</span></td>
      <td><p>Image rectangle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>Text of the hyperlink</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">f</span></td>
      <td><p>Font of the text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">horizontalAlignment</span></td>
      <td><p>Horizontal alignment</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">verticalAlignment</span></td>
      <td><p>Vertical alignment</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.linkarea">LinkArea</a>[]</td>
      <td><span class="parametername">areas</span></td>
      <td><p>Areas of the hyperlink</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">pict</span></td>
      <td><p>Picture (image)</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><p>The index of link arr.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_FpHyperlink_IsPointInLink_" data-uid="FarPoint.Win.FpHyperlink.IsPointInLink*"></a>
<h4 id="FarPoint_Win_FpHyperlink_IsPointInLink_System_Drawing_Graphics_System_Int32_System_Int32_System_Drawing_Rectangle_System_String_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_System_Windows_Forms_LinkArea___FarPoint_Win_Picture_System_Boolean_" data-uid="FarPoint.Win.FpHyperlink.IsPointInLink(System.Drawing.Graphics,System.Int32,System.Int32,System.Drawing.Rectangle,System.String,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,System.Windows.Forms.LinkArea[],FarPoint.Win.Picture,System.Boolean)">IsPointInLink(Graphics, int, int, Rectangle, string, Font, HorizontalAlignment, VerticalAlignment, LinkArea[], Picture, bool)</h4>
<div class="markdown level1 summary"><p>Determines if the point is in the text of the link in the hyperlink control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static int IsPointInLink(Graphics g, int x, int y, Rectangle r, string text, Font f, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, LinkArea[] areas, Picture pict, bool rightToLeft)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function IsPointInLink(g As Graphics, x As Integer, y As Integer, r As Rectangle, text As String, f As Font, horizontalAlignment As HorizontalAlignment, verticalAlignment As VerticalAlignment, areas As LinkArea(), pict As Picture, rightToLeft As Boolean) 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="https://learn.microsoft.com/dotnet/api/system.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>GDI+ graphics surface</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>X-coordinate of point</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>Y-coordinate of point</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">r</span></td>
      <td><p>Image rectangle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>Text of the hyperlink</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">f</span></td>
      <td><p>Font of the text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">horizontalAlignment</span></td>
      <td><p>Horizontal alignment</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">verticalAlignment</span></td>
      <td><p>Vertical alignment</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.linkarea">LinkArea</a>[]</td>
      <td><span class="parametername">areas</span></td>
      <td><p>Areas of the hyperlink</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">pict</span></td>
      <td><p>Picture (image)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rightToLeft</span></td>
      <td><p>Whether to set right to left</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><p>The index of link arr.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
