GrapeCity.Win.MultiRow Namespace > Section Class : Border Property |
<SRCategoryAttribute("Appearance")> <SRDescriptionAttribute("Indicates the border of the Section.")> Public Property Border As BorderBase
Dim instance As Section Dim value As BorderBase instance.Border = value value = instance.Border
[SRCategory("Appearance")] [SRDescription("Indicates the border of the Section.")] public BorderBase Border {get; set;}
void setBorderButton_Click(object sender, EventArgs e) { Template template = Template.Default; // Change row section border. Section rowSection = template.Row; rowSection.Border = new RoundedBorder(LineStyle.Double, Color.Red, 0.3f); // Change column header section border. Section headerSection = template.ColumnHeaders[0]; headerSection.Border = new RoundedBorder(LineStyle.Double, Color.Red, 0.3f); // Reload template. this.gcMultiRow1.Template = template; }
Private Sub setBorderButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setBorderButton.Click Dim template1 As Template = Template.Default ' Change row section border. Dim rowSection As Section = template1.Row rowSection.Border = New RoundedBorder(LineStyle.Double, Color.Red, 0.3F) ' Change column header section border. Dim headerSection As Section = template1.ColumnHeaders(0) headerSection.Border = New RoundedBorder(LineStyle.Double, Color.Red, 0.3F) ' Reload template. 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