C# Класс NekoKun.Office2007Renderer

Draw ToolStrips using the Office 2007 themed appearance.
Наследование: System.Windows.Forms.ToolStripProfessionalRenderer
Показать файл Открыть проект

Защищенные методы

Метод Описание
OnRenderArrow ( System.Windows.Forms.ToolStripArrowRenderEventArgs e ) : void

Raises the RenderArrow event.

OnRenderButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderButtonBackground event.

OnRenderDropDownButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderDropDownButtonBackground event.

OnRenderImageMargin ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void

Raises the RenderImageMargin event.

OnRenderItemCheck ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void

Raises the RenderItemCheck event.

OnRenderItemImage ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void

Raises the RenderItemImage event.

OnRenderItemText ( ToolStripItemTextRenderEventArgs e ) : void

Raises the RenderItemText event.

OnRenderMenuItemBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void

Raises the RenderMenuItemBackground event.

OnRenderSeparator ( ToolStripSeparatorRenderEventArgs e ) : void

Raises the RenderSeparator event.

OnRenderSplitButtonBackground ( ToolStripItemRenderEventArgs e ) : void

Raises the RenderSplitButtonBackground event.

OnRenderStatusStripSizingGrip ( ToolStripRenderEventArgs e ) : void

Raises the RenderStatusStripSizingGrip event.

OnRenderToolStripBackground ( ToolStripRenderEventArgs e ) : void

Raises the RenderToolStripBackground event.

OnRenderToolStripBorder ( ToolStripRenderEventArgs e ) : void

Raises the RenderToolStripBorder event.

OnRenderToolStripContentPanelBackground ( ToolStripContentPanelRenderEventArgs e ) : void

Raises the RenderToolStripContentPanelBackground event.

Приватные методы

Метод Описание
CreateArrowPath ( ToolStripItem item, Rectangle rect, ArrowDirection direction ) : GraphicsPath
CreateBorderPath ( Rectangle rect, Rectangle exclude, float cut ) : GraphicsPath
CreateBorderPath ( Rectangle rect, float cut ) : GraphicsPath
CreateClipBorderPath ( Rectangle rect, Rectangle exclude, float cut ) : GraphicsPath
CreateClipBorderPath ( Rectangle rect, float cut ) : GraphicsPath
CreateIndeterminatePath ( Rectangle rect ) : GraphicsPath
CreateInsideBorderPath ( Rectangle rect, Rectangle exclude, float cut ) : GraphicsPath
CreateInsideBorderPath ( Rectangle rect, float cut ) : GraphicsPath
CreateTickPath ( Rectangle rect ) : GraphicsPath
DrawContextMenuHeader ( Graphics g, ToolStripItem item ) : void
DrawGradientBack ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
DrawGradientBorder ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
DrawGradientContextMenuItem ( Graphics g, ToolStripItem item, GradientItemColors colors ) : void
DrawGradientItem ( Graphics g, Rectangle backRect, GradientItemColors colors ) : void
DrawGradientToolItem ( Graphics g, ToolStripItem item, GradientItemColors colors ) : void
DrawGradientToolSplitItem ( Graphics g, ToolStripSplitButton splitButton, GradientItemColors colorsButton, GradientItemColors colorsDrop, GradientItemColors colorsSplit ) : void
DrawGripGlyph ( Graphics g, int x, int y, Brush darkBrush, Brush lightBrush ) : void
DrawSeparator ( Graphics g, bool vertical, Rectangle rect, Pen lightPen, Pen darkPen, int horizontalInset, bool rtl ) : void
Office2007Renderer ( ) : System.Collections.Generic
RenderToolButtonBackground ( Graphics g, ToolStripButton button, ToolStrip toolstrip ) : void
RenderToolDropButtonBackground ( Graphics g, ToolStripItem item, ToolStrip toolstrip ) : void
RenderToolSplitButtonBackground ( Graphics g, ToolStripSplitButton splitButton, ToolStrip toolstrip ) : void

Описание методов

OnRenderArrow() защищенный Метод

Raises the RenderArrow event.
protected OnRenderArrow ( System.Windows.Forms.ToolStripArrowRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripArrowRenderEventArgs An ToolStripArrowRenderEventArgs containing the event data.
Результат void

OnRenderButtonBackground() защищенный Метод

Raises the RenderButtonBackground event.
protected OnRenderButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
Результат void

OnRenderDropDownButtonBackground() защищенный Метод

Raises the RenderDropDownButtonBackground event.
protected OnRenderDropDownButtonBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
Результат void

OnRenderImageMargin() защищенный Метод

Raises the RenderImageMargin event.
protected OnRenderImageMargin ( System.Windows.Forms.ToolStripRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
Результат void

OnRenderItemCheck() защищенный Метод

Raises the RenderItemCheck event.
protected OnRenderItemCheck ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemImageRenderEventArgs An ToolStripItemImageRenderEventArgs containing the event data.
Результат void

OnRenderItemImage() защищенный Метод

Raises the RenderItemImage event.
protected OnRenderItemImage ( System.Windows.Forms.ToolStripItemImageRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemImageRenderEventArgs An ToolStripItemImageRenderEventArgs containing the event data.
Результат void

OnRenderItemText() защищенный Метод

Raises the RenderItemText event.
protected OnRenderItemText ( ToolStripItemTextRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemTextRenderEventArgs An ToolStripItemTextRenderEventArgs containing the event data.
Результат void

OnRenderMenuItemBackground() защищенный Метод

Raises the RenderMenuItemBackground event.
protected OnRenderMenuItemBackground ( System.Windows.Forms.ToolStripItemRenderEventArgs e ) : void
e System.Windows.Forms.ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
Результат void

OnRenderSeparator() защищенный Метод

Raises the RenderSeparator event.
protected OnRenderSeparator ( ToolStripSeparatorRenderEventArgs e ) : void
e ToolStripSeparatorRenderEventArgs An ToolStripSeparatorRenderEventArgs containing the event data.
Результат void

OnRenderSplitButtonBackground() защищенный Метод

Raises the RenderSplitButtonBackground event.
protected OnRenderSplitButtonBackground ( ToolStripItemRenderEventArgs e ) : void
e ToolStripItemRenderEventArgs An ToolStripItemRenderEventArgs containing the event data.
Результат void

OnRenderStatusStripSizingGrip() защищенный Метод

Raises the RenderStatusStripSizingGrip event.
protected OnRenderStatusStripSizingGrip ( ToolStripRenderEventArgs e ) : void
e ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
Результат void

OnRenderToolStripBackground() защищенный Метод

Raises the RenderToolStripBackground event.
protected OnRenderToolStripBackground ( ToolStripRenderEventArgs e ) : void
e ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
Результат void

OnRenderToolStripBorder() защищенный Метод

Raises the RenderToolStripBorder event.
protected OnRenderToolStripBorder ( ToolStripRenderEventArgs e ) : void
e ToolStripRenderEventArgs An ToolStripRenderEventArgs containing the event data.
Результат void

OnRenderToolStripContentPanelBackground() защищенный Метод

Raises the RenderToolStripContentPanelBackground event.
protected OnRenderToolStripContentPanelBackground ( ToolStripContentPanelRenderEventArgs e ) : void
e ToolStripContentPanelRenderEventArgs An ToolStripContentPanelRenderEventArgs containing the event data.
Результат void