ATMLCommonLibrary.controls.awb.AWBToolTip.DrawTextShadow C# (CSharp) 메소드

DrawTextShadow() 개인적인 메소드

private DrawTextShadow ( Graphics g, DrawToolTipEventArgs e ) : void
g System.Drawing.Graphics
e System.Windows.Forms.DrawToolTipEventArgs
리턴 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);
        }