Label.RenderTransparent Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

This property has been deprecated. Use BackColor instead. http://go.microsoft.com/fwlink/?linkid=14202

Caution

This property has been deprecated. Use BackColor instead. https://go.microsoft.com/fwlink/?linkid=14202

Indicates whether the container control background is rendered on the Label.

C#
protected virtual bool RenderTransparent { get; set; }
C#
[System.Obsolete("This property has been deprecated. Use BackColor instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual bool RenderTransparent { get; set; }
C#
[System.Obsolete("This property has been deprecated. Use BackColor instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual bool RenderTransparent { get; set; }

Property Value

true if the background of the Label control's container is rendered on the Label; otherwise, false. The default is false.

Attributes

Remarks

Classes that inherit from Label can override this method to determine whether the derived control background will be rendered transparently on the form on which the control is drawn.

Applies to

Produkt Versioner (Föråldrad)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9, 10)