Spread Windows Forms 6.0 Product Documentation
BevelBorder Constructor(BevelBorderType,Color,Color,Int32,Boolean,Boolean,Boolean,Boolean)
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > BevelBorder Class > BevelBorder Constructor : BevelBorder Constructor(BevelBorderType,Color,Color,Int32,Boolean,Boolean,Boolean,Boolean)


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

Glossary Item Box

Creates a beveled border with the specified type, highlight color, shadow color, thickness, and sides on which the border is drawn.

Syntax

Visual Basic (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 _
)
Visual Basic (Usage)Copy Code
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)
C# 
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.
C#Copy Code
FarPoint.Win.BevelBorder bevel = new FarPoint.Win.BevelBorder(BevelBorderType.Lowered, Color.Blue, Color.LightBlue, 1.5, true, false, true, false);
Visual BasicCopy Code
Dim bevel as New FarPoint.Win.BevelBorder(BevelBorderType.Lowered, Color.Blue, Color.LightBlue, 1.5, True, False, True, False)

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.