GrapeCity MultiRow Windows Forms Documentation
ThreeDBorder Constructor(Color,Color,Color,Color)
Example 


The dark color.
The dark dark color.
The light color.
The light light color.
Initializes a new instance of the ThreeDBorder class with specified colors.
Syntax
Public Function New( _
   ByVal darkColor As Color, _
   ByVal darkDarkColor As Color, _
   ByVal lightColor As Color, _
   ByVal lightLightColor As Color _
)
Dim darkColor As Color
Dim darkDarkColor As Color
Dim lightColor As Color
Dim lightLightColor As Color
 
Dim instance As New ThreeDBorder(darkColor, darkDarkColor, lightColor, lightLightColor)
public ThreeDBorder( 
   Color darkColor,
   Color darkDarkColor,
   Color lightColor,
   Color lightLightColor
)

Parameters

darkColor
The dark color.
darkDarkColor
The dark dark color.
lightColor
The light color.
lightLightColor
The light light color.
Example
The following code example shows how to set a ThreeDBorder in the Section. This example is part of a larger example available for the Border class.
void setThreeDBorderToRow_Click(object sender, EventArgs e)
        {
            Template template1 = gcMultiRow1.Template;
            Row row = template1.Row;

            if (row.Border is ThreeDBorder)
            {
                row.Border = Border.Empty;
            }
            else
            {
                //Use this constructor to set the outline ThreeDBorder
                ThreeDBorder threeDBorder1 = new ThreeDBorder(Color.Gray, Color.DarkGray, Color.White, 
Color.LightGray);
                threeDBorder1.ThreeDEffect = ThreeDEffect.Raised;
                //Set ThreeDBorder to Row.
                row.Border = threeDBorder1;
            }

            // Reload template1.
            this.gcMultiRow1.Template = template1;
        }
Private Sub setThreeDBorderToRow_Click(ByVal sender As Object, ByVal e As EventArgs) Handles 
setThreeDBorderToRow.Click
        Dim template1 As Template = gcMultiRow1.Template
        Dim row As Row = template1.Row

        If TypeOf row.Border Is ThreeDBorder Then
            row.Border = Border.Empty
        Else
            'Use this constructor to set the outline ThreeDBorder
            Dim threeDBorder1 As New ThreeDBorder(Color.Gray, Color.DarkGray, Color.White, Color.LightGray)
            threeDBorder1.ThreeDEffect = ThreeDEffect.Raised
            'Set ThreeDBorder to Row.
            row.Border = threeDBorder1
        End If

        ' Reload template1.
        Me.gcMultiRow1.Template = template1
    End Sub
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

Reference

ThreeDBorder Class
ThreeDBorder Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.