Label.RenderTransparent 属性

定义

注意

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

注意

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

指示容器控件背景是否在 Label 上呈现。

protected:
 virtual property bool RenderTransparent { bool get(); void set(bool value); };
protected virtual bool RenderTransparent { get; set; }
[System.Obsolete("This property has been deprecated. Use BackColor instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual bool RenderTransparent { get; set; }
[System.Obsolete("This property has been deprecated. Use BackColor instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual bool RenderTransparent { get; set; }
member this.RenderTransparent : bool with get, set
[<System.Obsolete("This property has been deprecated. Use BackColor instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.RenderTransparent : bool with get, set
[<System.Obsolete("This property has been deprecated. Use BackColor instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.RenderTransparent : bool with get, set
Protected Overridable Property RenderTransparent As Boolean

属性值

Boolean

如果 Label 控件的容器背景在 Label 上呈现,则为 true;否则为 false。 默认值为 false

属性

注解

继承自 Label 的类可以重写此方法,以确定派生控件背景是否将以透明方式呈现在绘制控件的窗体上。

适用于