ToolStripItem.BackgroundImage 屬性

定義

取得或設定在項目中顯示的背景影像。

public:
 virtual property System::Drawing::Image ^ BackgroundImage { System::Drawing::Image ^ get(); void set(System::Drawing::Image ^ value); };
public virtual System.Drawing.Image BackgroundImage { get; set; }
member this.BackgroundImage : System.Drawing.Image with get, set
Public Overridable Property BackgroundImage As Image

屬性值

Image

Image,表示要在項目背景中顯示的影像。

備註

BackgroundImage使用 屬性將圖形影像放在專案上。

注意

Windows Forms控制項不支援具有透明或透明色彩的影像作為背景影像。

屬性為 true 的子控制項 RightToLeftLayout 不支援這個屬性。

給繼承者的注意事項

您不需要同時覆寫 get 屬性的 BackgroundImageset 存取子;您可以視需要只覆寫一個。

適用於