GrapeCity.Win.MultiRow Namespace > Border Class : Right Property |
<RefreshPropertiesAttribute(RefreshProperties.All)> Public Property Right As Line
[RefreshProperties(RefreshProperties.All)] public Line Right {get; set;}
void setNormalBorderToCell_Click(object sender, EventArgs e) { Template template1 = gcMultiRow1.Template; Row row = template1.Row; Border normalBorder1 = new Border(); //The outline borders have the LineStyle.Medium style and Red color. //normalBorder1.Outline = new Line(LineStyle.Medium, Color.Red); //Except the above, you can set each border in different style or color. normalBorder1.Top = new Line(LineStyle.SlantedDashDot, Color.Red); normalBorder1.Bottom = new Line(LineStyle.SlantedDashDot, Color.Orange); normalBorder1.Left = new Line(LineStyle.SlantedDashDot, Color.Blue); normalBorder1.Right = new Line(LineStyle.SlantedDashDot, Color.Green); row.Cells[0].Style.Border = normalBorder1; // Reload template1. this.gcMultiRow1.Template = template1; }
Private Sub setNormalBorderToCell_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setNormalBorderToCell.Click Dim template1 As Template = gcMultiRow1.Template Dim row As Row = template1.Row Dim normalBorder1 As New Border() 'The outline borders have the LineStyle.Medium style and Red color. 'normalBorder1.Outline = new Line(LineStyle.Medium, Color.Red); 'Except the above, you can set each border in different style or color. normalBorder1.Top = New Line(LineStyle.SlantedDashDot, Color.Red) normalBorder1.Bottom = New Line(LineStyle.SlantedDashDot, Color.Orange) normalBorder1.Left = New Line(LineStyle.SlantedDashDot, Color.Blue) normalBorder1.Right = New Line(LineStyle.SlantedDashDot, Color.Green) row.Cells(0).Style.Border = normalBorder1 ' 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