Spread Windows Forms 12.0 Product Documentation
BevelBorder Constructor(BevelBorderType,Color,Color,Int32,Boolean,Boolean,Boolean,Boolean)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > BevelBorder Class > BevelBorder Constructor : BevelBorder Constructor(BevelBorderType,Color,Color,Int32,Boolean,Boolean,Boolean,Boolean)
BevelBorderType setting containing the type of beveled border
Color of highlight for beveled border
Color of shadow for beveled border
Thickness of beveled border in pixels
Whether to draw the left side
Whether to draw the top
Whether to draw the right side
Whether to draw the bottom
Creates a beveled border with the specified type, highlight color, shadow color, thickness, and sides on which the border is drawn.
Syntax
'Declaration
 
Public Function New( _
   ByVal type As BevelBorderType, _
   ByVal highlight As Color, _
   ByVal shadow As Color, _
   ByVal thickness As Integer, _
   ByVal left As Boolean, _
   ByVal top As Boolean, _
   ByVal right As Boolean, _
   ByVal bottom As Boolean _
)
'Usage
 
Dim type As BevelBorderType
Dim highlight As Color
Dim shadow As Color
Dim thickness As Integer
Dim left As Boolean
Dim top As Boolean
Dim right As Boolean
Dim bottom As Boolean
 
Dim instance As New BevelBorder(type, highlight, shadow, thickness, left, top, right, bottom)
public BevelBorder( 
   BevelBorderType type,
   Color highlight,
   Color shadow,
   int thickness,
   bool left,
   bool top,
   bool right,
   bool bottom
)

Parameters

type
BevelBorderType setting containing the type of beveled border
highlight
Color of highlight for beveled border
shadow
Color of shadow for beveled border
thickness
Thickness of beveled border in pixels
left
Whether to draw the left side
top
Whether to draw the top
right
Whether to draw the right side
bottom
Whether to draw the bottom
Example
This example creates a bevel border.
FarPoint.Win.BevelBorder bevel = new FarPoint.Win.BevelBorder(BevelBorderType.Lowered, Color.Blue, Color.LightBlue, 1.5, true, false, true, false);
Dim bevel as New FarPoint.Win.BevelBorder(BevelBorderType.Lowered, Color.Blue, Color.LightBlue, 1.5, True, False, True, False)
See Also

Reference

BevelBorder Class
BevelBorder Members
Overload List
BevelBorderType Enumeration
Type Property
Highlight Property
Shadow Property
Thickness Property