GrapeCity MultiRow Windows Forms Documentation
Border Property (Section)
Example 


Gets or sets the Section border.
Syntax
<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;}

Property Value

A BorderBase value that represents the border of the Section. The default is a null reference (Nothing in Visual Basic).
Example
The following code example shows how to use a section border. This code example is part of a larger example provided for the Section class.
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
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

Section Class
Section Members
Border Class
RoundedBorder Class
ThreeDBorder Class

 

 


Copyright © GrapeCity, inc. All rights reserved.