In The Hand LtdIn The Hand
RoundedRectangle Method (g, p, b, rect, radius)
NamespacesInTheHand.DrawingGraphicsHelperRoundedRectangle(Graphics, Pen, LinearGradientBrush, Rectangle, Int32)
.NET Components for Mobility
Draws a rounded rectangle with a gradient fill.
Declaration Syntax
C#Visual Basic
public static void RoundedRectangle(
	Graphics g,
	Pen p,
	LinearGradientBrush b,
	Rectangle rect,
	int radius
)
Public Shared Sub RoundedRectangle ( _
	g As Graphics, _
	p As Pen, _
	b As LinearGradientBrush, _
	rect As Rectangle, _
	radius As Integer _
)
Parameters
g (Graphics)
The Graphics instance to use.
p (Pen)
The Pen to use for the shape outline.
b (LinearGradientBrush)
The Brush to use for the shape fill.
rect (Rectangle)
The bounding rectangle for the shape.
radius (Int32)
The radius (in pixels) for the corners.
Remarks
Platforms Supported
Windows Mobile
Windows Mobile Version 5.0 and later
Windows Embedded Compact
Windows CE .NET 4.0 and later

Assembly: InTheHand.Drawing (Module: InTheHand.Drawing) Version: 7.0.0.0