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


outer
Outside border
inner
Inside border
faceWidth
Face width of the border
faceColor
Face color of the border

Glossary Item Box

Creates a compound border with the specified inside and outside borders and the specified face color.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal outer As IBorder, _
   ByVal inner As IBorder, _
   ByVal faceWidth As Integer, _
   ByVal faceColor As Color _
)
Visual Basic (Usage)Copy Code
Dim outer As IBorder
Dim inner As IBorder
Dim faceWidth As Integer
Dim faceColor As Color
 
Dim instance As New CompoundBorder(outer, inner, faceWidth, faceColor)
C# 
public CompoundBorder( 
   IBorder outer,
   IBorder inner,
   int faceWidth,
   Color faceColor
)

Parameters

outer
Outside border
inner
Inside border
faceWidth
Face width of the border
faceColor
Face color of the border

Example

This example creates a compund border.
C#Copy Code
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed);
FarPoint.Win.ComplexBorderSide side1 = new FarPoint.Win.ComplexBorderSide(); 
FarPoint.Win.ComplexBorder lb = new FarPoint.Win.ComplexBorder(side); 
FarPoint.Win.ComplexBorder tb = new FarPoint.Win.ComplexBorder(side1); 
FarPoint.Win.CompoundBorder cb = new FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red);
Visual BasicCopy Code
Dim side As New FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed)
Dim side1 As New FarPoint.Win.ComplexBorderSide
Dim lb As New FarPoint.Win.ComplexBorder(side)
Dim tb As New FarPoint.Win.ComplexBorder(side1)
Dim cb As New FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red)

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.