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
的類別可以覆寫這個方法,以判斷是否要在繪製控制項的表單上以透明方式呈現衍生控制項背景。