Xceed SmartUI for WinForms v3.6 Documentation
Xceed.SmartUI.v3.6 Assembly / Xceed.SmartUI Namespace / SmartPaint Class / DrawBorder Method
A System.Drawing.Color structure representing the top and left color of the border.
A System.Drawing.Color structure representing the bottom and right color of the border.
A System.Drawing.Rectangle structure representing the rectangle for which to draw the border.


In This Topic
    DrawBorder Method
    In This Topic
    Draws a border for the specified rectangle with the specified colors.
    Syntax
    'Declaration
     
    Public Sub DrawBorder( _
       ByVal leftTopColor As Color, _
       ByVal rightBottomColor As Color, _
       ByVal rectangle As Rectangle _
    ) 
    'Usage
     
    Dim instance As SmartPaint
    Dim leftTopColor As Color
    Dim rightBottomColor As Color
    Dim rectangle As Rectangle
     
    instance.DrawBorder(leftTopColor, rightBottomColor, rectangle)
    public void DrawBorder( 
       Color leftTopColor,
       Color rightBottomColor,
       Rectangle rectangle
    )

    Parameters

    leftTopColor
    A System.Drawing.Color structure representing the top and left color of the border.
    rightBottomColor
    A System.Drawing.Color structure representing the bottom and right color of the border.
    rectangle
    A System.Drawing.Rectangle structure representing the rectangle for which to draw the border.
    Requirements

    Target Platforms: 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