ControlPaint.DrawBorder Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Draws a border on a button-style control.

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

NameDescription
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
Show: