Label.RenderTransparent Label.RenderTransparent Label.RenderTransparent Label.RenderTransparent Property

定義

警告

此 API 現已淘汰。

指示容器控制項背景是否呈現在 Label 上。Indicates whether the container control background is rendered on the Label.

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

屬性值

如果 Label 控制項容器的背景呈現在 Label 上,則為 true,否則為 falsetrue if the background of the Label control's container is rendered on the Label; otherwise, false. 預設為 falseThe default is false.

備註

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

適用於