Gets or sets the background color for the control.
Syntax
Visual Basic (Declaration) | |
---|
<SRCategoryAttribute("Appearance")>
<DispIdAttribute(-501)>
<SRDescriptionAttribute("The background color of the component. ")>
Public Overridable Property BackColor As Color |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As Medical3DControl
Dim value As Color
instance.BackColor = value
value = instance.BackColor |
C# | |
---|
[SRCategoryAttribute("Appearance")]
[DispIdAttribute(-501)]
[SRDescriptionAttribute("The background color of the component. ")]
public virtual Color BackColor {get; set;} |
C++/CLI | |
---|
[SRCategoryAttribute("Appearance")]
[DispIdAttribute(-501)]
[SRDescriptionAttribute("The background color of the component. ")]
public:
virtual property Color BackColor {
Color get();
void set ( Color value);
} |
Property Value
A
System.Drawing.Color that represents the background color of the control. The default is the value of the
System.Windows.Forms.Control.DefaultBackColor property.
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also