ToolStripItem.BackgroundImage 屬性

定義

取得或設定在項目中顯示的背景影像。Gets or sets the background image displayed in the item.

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,表示要在項目背景中顯示的影像。An Image that represents the image to display in the background of the item.

備註

BackgroundImage 可以使用屬性將圖形影像放置在專案上。Use the BackgroundImage property to place a graphic image onto an item.

注意

Windows Forms 控制項做為背景影像,則不支援具有半透明或透明色彩的影像。Images with translucent or transparent colors are not supported by Windows Forms controls as background images.

屬性為的子控制項不支援這個屬性 RightToLeftLayout trueThis property is not supported on child controls whose RightToLeftLayout property is true.

給繼承者的注意事項

您不需要覆寫 get 屬性的和存取子, set BackgroundImage 您可以視需要覆寫其中一個。You are not required to override both the get and set accessors of the BackgroundImage property; you can override only one if needed.

適用於