GrapeCity MultiRow Windows Forms Documentation
BackColor Property (Section)
Example 


Gets or sets the Section background color.
Syntax
<SRDescriptionAttribute("Indicates the background color of the Section.")>
<FeatureAttribute(Name="Section", Version="V5.0")>
<SRCategoryAttribute("Appearance")>
Public Property BackColor As Color
Dim instance As Section
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
[SRDescription("Indicates the background color of the Section.")]
[Feature(Name="Section", Version="V5.0")]
[SRCategory("Appearance")]
public Color BackColor {get; set;}

Property Value

A System.Drawing.Color that represents the background color.
Example
The following code example shows how to change the section's backcolor effect. This code example is part of a larger example provided for the Section class.
void setBackColorButton_Click(object sender, EventArgs e)
        {
            Template template = Template.Default;

            Section section = template.Row;

            section.BackColor = Color.Yellow;

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

        Dim section As Section = template1.Row

        section.BackColor = Color.Yellow

        ' 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

 

 


Copyright © GrapeCity, inc. All rights reserved.