tools/Stampfer/PeterSource1_1/DockContent/VistaButton.cs
/// <summary>
/// Draws the text for the button.
/// </summary>
/// <param name="g">The graphics object used in the paint event.</param>
Draws the text for the button.
Draws the text for the button .
private void DrawText (Graphics g)
        {
            StringFormat sf = Common.StringFormatAlignment(this.TextAlign);
            Rectangle r = new Rectangle(8, 8, this.Width - 17, this.Height - 17);
            g.DrawString(this.ButtonText, this.Font, new SolidBrush(this.ForeColor), r, sf);
        }
private void DrawText ( Graphics g ) { StringFormat sf = Common . StringFormatAlignment ( this . TextAlign ) ; Rectangle r = new Rectangle ( 8 , 8 , this . Width - 17 , this . Height - 17 ) ; g . DrawString ( this . ButtonText , this . Font , new SolidBrush ( this . ForeColor ) , r , sf ) ; }
Draws the text for the button.
Draws the text for the button .
g
Graphics
The graphics object used in the paint event.
The graphics object used in the paint event .