GrapeCity MultiRow Windows Forms Documentation
RoundedBorder Constructor(LineStyle,Color)
Example 


The line style used for all outlines and corners.
The color used for all outlines and corners.
Initializes a new instance of the RoundedBorder class using the supplied style and color for all outlines and corners.
Syntax
Public Function New( _
   ByVal style As LineStyle, _
   ByVal color As Color _
)
Dim style As LineStyle
Dim color As Color
 
Dim instance As New RoundedBorder(style, color)
public RoundedBorder( 
   LineStyle style,
   Color color
)

Parameters

style
The line style used for all outlines and corners.
color
The color used for all outlines and corners.
Example
The following code example shows how to set the border corner radius. This example is part of a larger example available for the Border class.
void setRoundedBorderCornerRadiusToCell_Click(object sender, EventArgs e)
       {
           Template template1 = gcMultiRow1.Template;

           RoundedBorder roundedBorder1 = new RoundedBorder(LineStyle.Medium, Color.Red);
           //Only set the TopLeftCorner and TopRightCorner.
           roundedBorder1.TopLeftCornerRadius = 0.3f;
           roundedBorder1.TopRightCornerRadius = 0.3f;
           template1.Row.Cells[0].Style.Border = roundedBorder1;

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

        Dim roundedBorder1 As New RoundedBorder(LineStyle.Medium, Color.Red)
        'Only set the TopLeftCorner and TopRightCorner.
        roundedBorder1.TopLeftCornerRadius = 0.3F
        roundedBorder1.TopRightCornerRadius = 0.3F
        template1.Row.Cells(0).Style.Border = roundedBorder1

        ' 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

RoundedBorder Class
RoundedBorder Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.