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

DrawText() private method

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