Label.RenderTransparent 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
属性值
如果 Label 控件的容器背景在 Label 上呈现,则为 true
;否则为 false
。 默认值为 false
。
- 属性
注解
继承自 Label
的类可以重写此方法,以确定派生控件背景是否将以透明方式呈现在绘制控件的窗体上。