System.Windows.Forms.ThemeWin32Classic.DrawRadioButton C# (CSharp) Method

DrawRadioButton() public method

public DrawRadioButton ( Graphics g, RadioButton rb, Rectangle glyphArea, Rectangle textBounds, Rectangle imageBounds, Rectangle clipRectangle ) : void
g System.Drawing.Graphics
rb RadioButton
glyphArea System.Drawing.Rectangle
textBounds System.Drawing.Rectangle
imageBounds System.Drawing.Rectangle
clipRectangle System.Drawing.Rectangle
return void
		public override void DrawRadioButton (Graphics g, RadioButton rb, Rectangle glyphArea, Rectangle textBounds, Rectangle imageBounds, Rectangle clipRectangle)
		{
			// Draw Button Background
			if (rb.FlatStyle == FlatStyle.Flat || rb.FlatStyle == FlatStyle.Popup) {
				glyphArea.Height -= 2;
				glyphArea.Width -= 2;
			}
			
			DrawRadioButtonGlyph (g, rb, glyphArea);

			// If we have an image, draw it
			if (imageBounds.Size != Size.Empty)
				DrawRadioButtonImage (g, rb, imageBounds);

			if (rb.Focused && rb.Enabled && rb.ShowFocusCues && textBounds.Size != Size.Empty)
				DrawRadioButtonFocus (g, rb, textBounds);

			// If we have text, draw it
			if (textBounds != Rectangle.Empty)
				DrawRadioButtonText (g, rb, textBounds);
		}

Same methods

ThemeWin32Classic::DrawRadioButton ( Graphics dc, Rectangle clip_rectangle, RadioButton radio_button ) : void
ThemeWin32Classic