DrawBorder Method

ControlPaint.DrawBorder Method


Draws a border on a button-style control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System_CAPS_pubmethodSystem_CAPS_staticDrawBorder(Graphics, Rectangle, Color, ButtonBorderStyle)

Draws a border with the specified style and color, on the specified graphics surface, and within the specified bounds on a button-style control.

System_CAPS_pubmethodSystem_CAPS_staticDrawBorder(Graphics, Rectangle, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle, Color, Int32, ButtonBorderStyle)

Draws a border on a button-style control with the specified styles, colors, and border widths; on the specified graphics surface; and within the specified bounds.

Return to top
© 2015 Microsoft