ATMLCommonLibrary.controls.awb.AWBToolTip.DrawTextShadow C# (CSharp) Method

DrawTextShadow() private method

private DrawTextShadow ( Graphics g, DrawToolTipEventArgs e ) : void
g System.Drawing.Graphics
e System.Windows.Forms.DrawToolTipEventArgs
return void
        private void DrawTextShadow(Graphics g, DrawToolTipEventArgs e)
        {
            Rectangle rc = new Rectangle();
            rc.X = e.Bounds.X + Padding+1;
            rc.Y = e.Bounds.Y + Padding + 1;
            rc.Width = e.Bounds.Width;
            rc.Height = e.Bounds.Height;
            TextFormatFlags flags = TextFormatFlags.WordBreak;
            Font f = new Font(e.AssociatedControl.Font, FontStyle.Bold);
            TextRenderer.DrawText(g, e.ToolTipText, f, rc, TextShadowColor, flags);
        }