ToolStripManagerRenderMode 枚举

定义

指定应用于窗体内包含的多个 ToolStrip 对象的绘制样式。Specifies the painting style applied to multiple ToolStrip objects contained in a form.

public enum class ToolStripManagerRenderMode
public enum ToolStripManagerRenderMode
type ToolStripManagerRenderMode = 
Public Enum ToolStripManagerRenderMode
继承
ToolStripManagerRenderMode

字段

Custom 0

指示使用除 ToolStripRendererToolStripProfessionalRenderer 以外的 ToolStripSystemRendererIndicates the use of a ToolStripRenderer other than ToolStripProfessionalRenderer or ToolStripSystemRenderer.

Professional 2

指示使用 ToolStripProfessionalRenderer 进行绘制。Indicates the use of a ToolStripProfessionalRenderer to paint.

System 1

指示使用 ToolStripSystemRenderer 进行绘制。Indicates the use of a ToolStripSystemRenderer to paint.

注解

ToolStripManagerRenderMode ToolStripRenderMode.ManagerRenderMode由类使用, 并为ToolStripToolStrip.RenderMode属性设置为的对象设置绘制样式。 ToolStripManagerThe ToolStripManagerRenderMode is used by the ToolStripManager class and sets the painting style for ToolStrip objects that have their ToolStrip.RenderMode property set to ToolStripRenderMode.ManagerRenderMode.

不能将设置ToolStripManager.RenderMode为显式设置为。 CustomYou cannot explicitly set the ToolStripManager.RenderMode to Custom. 但是, ToolStripManager.RenderMode如果Custom ToolStripRenderer 将设置ToolStripProfessionalRenderer为不是或ToolStripSystemRenderer的类的扩展, 则返回。 ToolStripManager.RendererHowever, ToolStripManager.RenderMode returns Custom when the ToolStripManager.Renderer is set to an extension of the ToolStripRenderer class that is not ToolStripProfessionalRenderer or ToolStripSystemRenderer.

适用于