ToolStrip.Renderer 屬性

定義

取得或設定 ToolStripRenderer,用來自訂 ToolStrip 的外觀和風格。Gets or sets a ToolStripRenderer used to customize the look and feel of a ToolStrip.

public:
 property System::Windows::Forms::ToolStripRenderer ^ Renderer { System::Windows::Forms::ToolStripRenderer ^ get(); void set(System::Windows::Forms::ToolStripRenderer ^ value); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ToolStripRenderer Renderer { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Renderer : System.Windows.Forms.ToolStripRenderer with get, set
Public Property Renderer As ToolStripRenderer

屬性值

ToolStripRenderer

ToolStripRenderer,用來自訂 ToolStrip 的外觀和風格。A ToolStripRenderer used to customize the look and feel of a ToolStrip.

屬性

備註

Renderer您可以使用屬性和 ToolStripRenderer 類別來自訂沒有視窗控制碼之任何的外觀和風格 ToolStripItemUse the Renderer property and the ToolStripRenderer class to customize the look and feel of any ToolStripItem that does not have a window handle.

若要這樣做,請從衍生類別 ToolStripRenderer ,並將它指派給 Renderer 屬性,然後呼叫 Invalidate 方法。To do this, derive a class from ToolStripRenderer, assign it to the Renderer property, and call the Invalidate method.

適用於

另請參閱