BackColor Property

Summary
Gets or sets the background color for the control.
Syntax
C#
VB
C++
public override Color BackColor { get; set; } 
Public Overrides Property BackColor As Color 
public: 
property Color BackColor { 
   Color get() override; 
   void set (    Color ) override; 
} 

Property Value

A System.Drawing.Color value.

Remarks

The BackColor property does not support transparent colors unless the SupportsTransparentBackColor value of System.Windows.Forms.ControlStyles is set to true. The BackColor property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a Button will have the same BackColor as its parent Form by default.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MediaFoundation Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.