ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Document Assembly / GrapeCity.ActiveReports Namespace / Border Class / GetShadowLinePosition Method
The border edges.
The rectangle area of the border.
The page scale.
Output parameter of the beginning of the shadow.
Output parameter of the ending of the shadow.
Example

In This Topic
    GetShadowLinePosition Method
    In This Topic
    Gets the position of the shadow line.
    Syntax
    'Declaration
     
    Public Sub GetShadowLinePosition( _
       ByVal borderEdges As BorderEdges, _
       ByVal borderRect As RectangleF, _
       ByVal pageScale As Single, _
       ByRef shadowStart As PointF, _
       ByRef shadowEnd As PointF _
    ) 
    public void GetShadowLinePosition( 
       BorderEdges borderEdges,
       RectangleF borderRect,
       float pageScale,
       out PointF shadowStart,
       out PointF shadowEnd
    )

    Parameters

    borderEdges
    The border edges.
    borderRect
    The rectangle area of the border.
    pageScale
    The page scale.
    shadowStart
    Output parameter of the beginning of the shadow.
    shadowEnd
    Output parameter of the ending of the shadow.
    Example
    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);
        }
    }
    See Also