C# Class CommonTools.Util

Exibir arquivo Open project: Nullstr1ng/MultiRDPClient.NET

Public Methods

Method Description
AdjustRectangle ( Rectangle r, Padding padding ) : Rectangle
Center ( RectangleF r ) : PointF
Draw2ColorBar ( Graphics dc, RectangleF r, Orientation orientation, Color c1, Color c2 ) : void
Draw3ColorBar ( Graphics dc, RectangleF r, Orientation orientation, Color c1, Color c2, Color c3 ) : void
DrawFrame ( Graphics dc, RectangleF r, float cornerRadius, Color color ) : void
Point ( PointF pf ) : Point
Rect ( RectangleF rf ) : Rectangle
Rect ( Rectangle r ) : RectangleF

Method Details

AdjustRectangle() public static method

public static AdjustRectangle ( Rectangle r, Padding padding ) : Rectangle
r System.Drawing.Rectangle
padding Padding
return System.Drawing.Rectangle

Center() public static method

public static Center ( RectangleF r ) : PointF
r System.Drawing.RectangleF
return System.Drawing.PointF

Draw2ColorBar() public static method

public static Draw2ColorBar ( Graphics dc, RectangleF r, Orientation orientation, Color c1, Color c2 ) : void
dc System.Drawing.Graphics
r System.Drawing.RectangleF
orientation Orientation
c1 Color
c2 Color
return void

Draw3ColorBar() public static method

public static Draw3ColorBar ( Graphics dc, RectangleF r, Orientation orientation, Color c1, Color c2, Color c3 ) : void
dc System.Drawing.Graphics
r System.Drawing.RectangleF
orientation Orientation
c1 Color
c2 Color
c3 Color
return void

DrawFrame() public static method

public static DrawFrame ( Graphics dc, RectangleF r, float cornerRadius, Color color ) : void
dc System.Drawing.Graphics
r System.Drawing.RectangleF
cornerRadius float
color Color
return void

Point() public static method

public static Point ( PointF pf ) : Point
pf System.Drawing.PointF
return Point

Rect() public static method

public static Rect ( RectangleF rf ) : Rectangle
rf System.Drawing.RectangleF
return System.Drawing.Rectangle

Rect() public static method

public static Rect ( Rectangle r ) : RectangleF
r System.Drawing.Rectangle
return System.Drawing.RectangleF