MobileControl.BackColor Propriedade

Definição

Obtém ou define a cor da tela de fundo especificada para o estilo.Gets or sets the specified background color for the style. O valor padrão é Empty.The default value is Empty. Esta API está obsoleta.This API is obsolete. Para saber mais sobre como desenvolver aplicativos móveis ASP.NET, veja Mobile Apps & Sites with ASP.NET (Aplicativos móveis e sites com ASP.NET).For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 virtual property System::Drawing::Color BackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.WebColorConverter))]
public virtual System.Drawing.Color BackColor { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.WebColorConverter))>]
member this.BackColor : System.Drawing.Color with get, set
Public Overridable Property BackColor As Color

Valor da propriedade

Color

A cor do plano de fundo especificada para o estilo.The specified background color for the style.

Atributos

Comentários

Ao contrário das outras propriedades, a BackColor propriedade não é herdada de seu pai.Unlike the other properties, the BackColor property is not inherited from its parent. Por exemplo, se você definir a BackColor propriedade como ciano em um controle pai, um controle filho não herdará uma cor de fundo de ciano; você deve definir explicitamente a propriedade do controle filho BackColor como ciano, ou deve definir a BackColor Propriedade do controle pai e aplicar a folha de estilo ao controle filho.For example, if you set the BackColor property to cyan on a parent control, a child control will not inherit a background color of cyan; you must explicitly set the child control's BackColor property to cyan, or you must set the BackColor property of the parent control and apply the style sheet to the child control. Isso é consistente com o comportamento das folhas de estilo em cascata.This is consistent with the behavior of cascading style sheets.

Aplica-se a

Confira também