ATMLCommonLibrary.controls.awb.AWBTabControl.GetPolyPoints C# (CSharp) Method

GetPolyPoints() private method

private GetPolyPoints ( Rectangle recBounds ) : Point[]
recBounds System.Drawing.Rectangle
return Point[]
        private Point[] GetPolyPoints( Rectangle recBounds )
        {
            var pt = new Point[7];
            if (Alignment == TabAlignment.Top)
            {
                pt[0] = new Point( recBounds.Left, recBounds.Bottom );
                pt[1] = new Point( recBounds.Left, recBounds.Top + 3 );
                pt[2] = new Point( recBounds.Left + 3, recBounds.Top );
                pt[3] = new Point( recBounds.Right - 3, recBounds.Top );
                pt[4] = new Point( recBounds.Right, recBounds.Top + 3 );
                pt[5] = new Point( recBounds.Right, recBounds.Bottom );
                pt[6] = new Point( recBounds.Left, recBounds.Bottom );
            }
            else
            {
                pt[0] = new Point( recBounds.Left, recBounds.Top );
                pt[1] = new Point( recBounds.Right, recBounds.Top );
                pt[2] = new Point( recBounds.Right, recBounds.Bottom - 3 );
                pt[3] = new Point( recBounds.Right - 3, recBounds.Bottom );
                pt[4] = new Point( recBounds.Left + 3, recBounds.Bottom );
                pt[5] = new Point( recBounds.Left, recBounds.Bottom - 3 );
                pt[6] = new Point( recBounds.Left, recBounds.Top );
            }
            return pt;
        }