# GrapeCity.ActiveReports.Border.GetShadowLinePosition

## Content

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



<h1 id="GrapeCity_ActiveReports_Border_GetShadowLinePosition_" data-uid="GrapeCity.ActiveReports.Border.GetShadowLinePosition*">GetShadowLinePosition Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Border_GetShadowLinePosition_" data-uid="GrapeCity.ActiveReports.Border.GetShadowLinePosition*"></a>
<h4 id="GrapeCity_ActiveReports_Border_GetShadowLinePosition_GrapeCity_ActiveReports_BorderEdges_System_Drawing_RectangleF_System_Single_System_Drawing_PointF__System_Drawing_PointF__" data-uid="GrapeCity.ActiveReports.Border.GetShadowLinePosition(GrapeCity.ActiveReports.BorderEdges,System.Drawing.RectangleF,System.Single,System.Drawing.PointF@,System.Drawing.PointF@)">GetShadowLinePosition(BorderEdges, RectangleF, float, out PointF, out PointF)</h4>
<div class="markdown level1 summary"><p>Gets the position of the shadow line.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetShadowLinePosition(BorderEdges borderEdges, RectangleF borderRect, float pageScale, out PointF shadowStart, out PointF shadowEnd)</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="GrapeCity.ActiveReports.BorderEdges.html">BorderEdges</a></td>
      <td><span class="parametername">borderEdges</span></td>
      <td><p>The border edges.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">borderRect</span></td>
      <td><p>The rectangle area of the border.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">pageScale</span></td>
      <td><p>The page scale.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">shadowStart</span></td>
      <td><p>Output parameter of the beginning of the shadow.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">shadowEnd</span></td>
      <td><p>Output parameter of the ending of the shadow.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Border_GetShadowLinePosition_GrapeCity_ActiveReports_BorderEdges_System_Drawing_RectangleF_System_Single_System_Drawing_PointF__System_Drawing_PointF___examples">Examples</h5>
<pre><code class="lang-csharp">public void DrawShadow(Border border, float pageScale, RectangleF borderRect)
{
	using (var pen = new Pen(Brushes.Black, Border.ShadowLineWidth / pageScale))
	{
		pen.SetLineCap(LineCap.Square, LineCap.Square, DashCap.Flat);
		// Right Shadow
		border.GetShadowLinePosition(BorderEdges.Right, borderRect, pageScale, out var shadowStart, out var shadowEnd);
		DrawLine(pen, shadowStart, shadowEnd);
		// Bottom Shadow
		border.GetShadowLinePosition(BorderEdges.Bottom, borderRect, pageScale, out shadowStart, out shadowEnd);
		DrawLine(pen, shadowStart, shadowEnd);
	}
}</code></pre>

</div>
