GrapeCity.Win.MultiRow Namespace > RoundedBorder Class > RoundedBorder Constructor : RoundedBorder Constructor(LineStyle,Color) |
Dim style As LineStyle Dim color As Color Dim instance As New RoundedBorder(style, color)
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
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