Version

DrawBorders Method (UltraContextMenuManager)

Draws the borders around a rectangle. This method uses cached pens to optimize drawing borders of the same type/color.
Syntax
'Declaration
 
Public Shared Sub DrawBorders( _
   ByVal gr As Graphics, _
   ByVal style As Infragistics.Win.UIElementBorderStyle, _
   ByVal sides As Border3DSide, _
   ByVal borderColor As Color, _
   ByVal borderColor3DBase As Color, _
   ByVal rect As Rectangle, _
   ByVal invalidRect As Rectangle, _
   ByVal flatMode As Boolean _
) 
public static void DrawBorders( 
   Graphics gr,
   Infragistics.Win.UIElementBorderStyle style,
   Border3DSide sides,
   Color borderColor,
   Color borderColor3DBase,
   Rectangle rect,
   Rectangle invalidRect,
   bool flatMode
)

Parameters

gr
The graphics object onto which the drawing will be performed.
style
The style of the borders.
sides
The border sides.
borderColor
The border color.
borderColor3DBase
The 3D border base color
rect
The rect of the borders
invalidRect
The invalid rect.
flatMode
Specifies whether to draw in flat mode.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also