Spread Windows Forms 10.0 Product Documentation
ComplexBorderSide Constructor(Color,Int32)
Example 


Color for this side of the border
Width of this side of the border, in pixels
Creates one side of a four-sided, complex border with the specified color and width.
Syntax
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal width As Integer _
)
'Usage
 
Dim color As Color
Dim width As Integer
 
Dim instance As New ComplexBorderSide(color, width)
public ComplexBorderSide( 
   Color color,
   int width
)

Parameters

color
Color for this side of the border
width
Width of this side of the border, in pixels
Remarks

Any border side that is created with the CreateBorderSide(color, width) constructor has the following properties:

Example
This example creates a red border with the specified thickness.
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(Color.Red, 1.5);
FarPoint.Win.ComplexBorder bord = new FarPoint.Win.ComplexBorder(side);
Dim side As New FarPoint.Win.ComplexBorderSide(Color.Red, 1.5)
Dim bord As New FarPoint.Win.ComplexBorder(side)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ComplexBorderSide Class
ComplexBorderSide Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.