ToolStrip.Renderer ToolStrip.Renderer ToolStrip.Renderer ToolStrip.Renderer Property

定义

获取或设置用于自定义 ToolStripRenderer 的外观的 ToolStripGets 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; }
member this.Renderer : System.Windows.Forms.ToolStripRenderer with get, set
Public Property Renderer As ToolStripRenderer

属性值

一个 ToolStripRenderer,用于自定义 ToolStrip 的外观。A ToolStripRenderer used to customize the look and feel of a ToolStrip.

注解

使用属性和类可自定义没有窗口句柄的任何ToolStripItem的外观。 ToolStripRenderer RendererUse the Renderer property and the ToolStripRenderer class to customize the look and feel of any ToolStripItem that does not have a window handle.

为此,请从ToolStripRenderer派生类,将其分配RendererInvalidate属性,并调用方法。To do this, derive a class from ToolStripRenderer, assign it to the Renderer property, and call the Invalidate method.

适用于

另请参阅