TabPage.OnPaintBackground(PaintEventArgs) 方法

定義

繪製 TabPage 的背景。

protected:
 override void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ e);
protected override void OnPaintBackground (System.Windows.Forms.PaintEventArgs e);
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaintBackground (e As PaintEventArgs)

參數

e
PaintEventArgs

PaintEventArgs,包含對於繪製背景十分有用的資料。

備註

系統會呼叫這個方法來繪製 的背景 TabPageUseVisualStyleBackColor當 和 Application.RenderWithVisualStyles 屬性值同時 true 為 且 AppearanceTabControl 系的 屬性為 Normal 時,此方法會使用目前的視覺化樣式繪製背景。 否則,此方法會如往常一樣繪製背景。

適用於