WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MetroToolStripRenderer

    Show / Hide Table of Contents

    Class MetroToolStripRenderer

    MetroToolStripRenderer

    Inheritance
    System.Object
    MetroToolStripRenderer
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class MetroToolStripRenderer : ToolStripProfessionalRenderer

    Constructors

    MetroToolStripRenderer()

    Declaration
    public MetroToolStripRenderer()

    MetroToolStripRenderer(Color, MetroToolStripRenderer.ERENDERTYPE)

    Declaration
    public MetroToolStripRenderer(Color colorTable, MetroToolStripRenderer.ERENDERTYPE erType)
    Parameters
    Type Name Description
    System.Drawing.Color colorTable
    MetroToolStripRenderer.ERENDERTYPE erType

    Fields

    m_blButtonCollapsed

    Declaration
    protected static Blend m_blButtonCollapsed
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blButtonFlash

    Declaration
    protected static Blend m_blButtonFlash
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blButtonSelected

    Declaration
    protected static Blend m_blButtonSelected
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blButtonShadow

    Declaration
    protected static Blend m_blButtonShadow
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blCaption

    Declaration
    protected static Blend m_blCaption
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blGrouped

    Declaration
    protected static Blend m_blGrouped
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blImageBackground

    Declaration
    protected static Blend m_blImageBackground
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blMenuBar

    Declaration
    protected static Blend m_blMenuBar
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blMenuItemDown

    Declaration
    protected static Blend m_blMenuItemDown
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blMenuItemUp

    Declaration
    protected static Blend m_blMenuItemUp
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blScrollButton

    Declaration
    protected static Blend m_blScrollButton
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blScroller

    Declaration
    protected static Blend m_blScroller
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blScrollerBackground

    Declaration
    protected static Blend m_blScrollerBackground
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blStandardScrollButton

    Declaration
    protected static Blend m_blStandardScrollButton
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blStatusBar

    Declaration
    protected static Blend m_blStatusBar
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_blToolBar

    Declaration
    protected static Blend m_blToolBar
    Field Value
    Type Description
    System.Drawing.Drawing2D.Blend

    m_htBitmaps

    Declaration
    protected Hashtable m_htBitmaps
    Field Value
    Type Description
    System.Collections.Hashtable

    Properties

    ArrowDownImage

    Declaration
    protected Bitmap ArrowDownImage { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    ArrowOverflow

    Declaration
    protected Bitmap ArrowOverflow { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    ArrowRightImage

    Declaration
    protected Bitmap ArrowRightImage { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    BorderColor

    Declaration
    protected Color BorderColor { get; }
    Property Value
    Type Description
    System.Drawing.Color

    ButtonHighlightBorder

    Declaration
    protected Pen ButtonHighlightBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ButtonHighlightGrouped

    Declaration
    protected Pen ButtonHighlightGrouped { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ButtonPressedBorder

    Declaration
    protected Pen ButtonPressedBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ButtonPressedGradientBegin

    Declaration
    protected Pen ButtonPressedGradientBegin { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ButtonPressedGradientEnd

    Declaration
    protected Pen ButtonPressedGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ButtonSelectedBorder

    Declaration
    protected Pen ButtonSelectedBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ButtonSelectedGradientEnd

    Declaration
    protected Pen ButtonSelectedGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    CaptionFormat

    Declaration
    protected static StringFormat CaptionFormat { get; }
    Property Value
    Type Description
    System.Drawing.StringFormat

    CaptionGradientBegin

    Declaration
    protected Color CaptionGradientBegin { get; }
    Property Value
    Type Description
    System.Drawing.Color

    CaptionGradientEnd

    Declaration
    protected Color CaptionGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Color

    CaptionHighlightGradientBegin

    Declaration
    protected Color CaptionHighlightGradientBegin { get; }
    Property Value
    Type Description
    System.Drawing.Color

    CaptionHighlightGradientEnd

    Declaration
    protected Color CaptionHighlightGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Color

    CaptionText

    Declaration
    protected Color CaptionText { get; }
    Property Value
    Type Description
    System.Drawing.Color

    CheckBackground

    Declaration
    protected Brush CheckBackground { get; }
    Property Value
    Type Description
    System.Drawing.Brush

    CheckBorder

    Declaration
    protected Pen CheckBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    CheckButton

    Declaration
    protected Bitmap CheckButton { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    CheckedFlashImage

    Declaration
    protected Bitmap CheckedFlashImage { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    CollapsedBorderPen

    Declaration
    protected Pen CollapsedBorderPen { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    GroupBorder

    Declaration
    protected Pen GroupBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    GroupGradientBegin

    Declaration
    protected Color GroupGradientBegin { get; }
    Property Value
    Type Description
    System.Drawing.Color

    GroupGradientEnd

    Declaration
    protected Color GroupGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Color

    ImageBorderPen

    Declaration
    protected Pen ImageBorderPen { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    LauncherBackground

    Declaration
    protected Color LauncherBackground { get; }
    Property Value
    Type Description
    System.Drawing.Color

    LauncherBorder

    Declaration
    protected Pen LauncherBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    LauncherText

    Declaration
    protected Color LauncherText { get; }
    Property Value
    Type Description
    System.Drawing.Color

    LauncherTextSelected

    Declaration
    protected Color LauncherTextSelected { get; }
    Property Value
    Type Description
    System.Drawing.Color

    MenuBorder

    Declaration
    protected Pen MenuBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    MenuItemBorder

    Declaration
    protected Pen MenuItemBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    MenuItemPressedGradientEnd

    Declaration
    protected Pen MenuItemPressedGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    MenuStripBorder

    Declaration
    protected Pen MenuStripBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    PressedFlashImage

    Declaration
    protected Bitmap PressedFlashImage { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    RenderType

    Declaration
    public MetroToolStripRenderer.ERENDERTYPE RenderType { get; set; }
    Property Value
    Type Description
    MetroToolStripRenderer.ERENDERTYPE

    SelectedFlashImage

    Declaration
    protected Bitmap SelectedFlashImage { get; }
    Property Value
    Type Description
    System.Drawing.Bitmap

    Shadow

    Declaration
    protected Brush Shadow { get; }
    Property Value
    Type Description
    System.Drawing.Brush

    ToolBarBlend

    Declaration
    protected static Blend ToolBarBlend { get; }
    Property Value
    Type Description
    System.Drawing.Drawing2D.Blend

    ToolStripBorder

    Declaration
    protected Pen ToolStripBorder { get; }
    Property Value
    Type Description
    System.Drawing.Pen

    ToolStripDropDownBackground

    Declaration
    protected Brush ToolStripDropDownBackground { get; }
    Property Value
    Type Description
    System.Drawing.Brush

    ToolStripHighlightGradientBegin

    Declaration
    protected Color ToolStripHighlightGradientBegin { get; }
    Property Value
    Type Description
    System.Drawing.Color

    ToolStripHighlightGradientEnd

    Declaration
    protected Color ToolStripHighlightGradientEnd { get; }
    Property Value
    Type Description
    System.Drawing.Color

    Methods

    DrawBorders(ToolStrip)

    Declaration
    protected virtual void DrawBorders(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts

    DrawCaption(ToolStrip)

    Declaration
    protected virtual void DrawCaption(ToolStrip toolStrip)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip

    DrawCompactScrollers(Graphics, ToolStripGallery)

    Declaration
    protected virtual void DrawCompactScrollers(Graphics g, ToolStripGallery gallery)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    ToolStripGallery gallery

    DrawEtchedBorders(ToolStrip)

    Declaration
    protected virtual void DrawEtchedBorders(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts

    DrawStandardScrollers(Graphics, ToolStripGallery)

    Declaration
    protected virtual void DrawStandardScrollers(Graphics g, ToolStripGallery gallery)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    ToolStripGallery gallery

    DrawStaticEdgeBorders(ToolStrip)

    Declaration
    protected virtual void DrawStaticEdgeBorders(ToolStrip ts)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip ts

    GetButtonBackgroundRect(ToolStripItem, Rectangle)

    Declaration
    protected Rectangle GetButtonBackgroundRect(ToolStripItem item, Rectangle rc)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem item
    System.Drawing.Rectangle rc
    Returns
    Type Description
    System.Drawing.Rectangle

    GetButtonRect(ToolStripItem)

    Declaration
    protected Rectangle GetButtonRect(ToolStripItem item)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem item
    Returns
    Type Description
    System.Drawing.Rectangle

    GetButtonRect(ToolStripItem, Rectangle, MetroToolStripRenderer.ERENDERTYPE)

    Declaration
    public static Rectangle GetButtonRect(ToolStripItem item, Rectangle rc, MetroToolStripRenderer.ERENDERTYPE erType)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem item
    System.Drawing.Rectangle rc
    MetroToolStripRenderer.ERENDERTYPE erType
    Returns
    Type Description
    System.Drawing.Rectangle

    GetDownArrowSize()

    Declaration
    public Size GetDownArrowSize()
    Returns
    Type Description
    System.Drawing.Size

    GetFlashImage(Color, Size)

    Declaration
    protected Bitmap GetFlashImage(Color colorBase, Size size)
    Parameters
    Type Name Description
    System.Drawing.Color colorBase
    System.Drawing.Size size
    Returns
    Type Description
    System.Drawing.Bitmap

    GetKnownBrush(MetroToolStripRenderer.EBRUSH, Color)

    Declaration
    protected Brush GetKnownBrush(MetroToolStripRenderer.EBRUSH eBrush, Color color)
    Parameters
    Type Name Description
    MetroToolStripRenderer.EBRUSH eBrush
    System.Drawing.Color color
    Returns
    Type Description
    System.Drawing.Brush

    GetKnownPen(MetroToolStripRenderer.EPEN, Color, Int32)

    Declaration
    protected Pen GetKnownPen(MetroToolStripRenderer.EPEN ePen, Color color, int width)
    Parameters
    Type Name Description
    MetroToolStripRenderer.EPEN ePen
    System.Drawing.Color color
    System.Int32 width
    Returns
    Type Description
    System.Drawing.Pen

    GetLauncherImage(IToolStripExSupport2)

    Declaration
    protected virtual Image GetLauncherImage(IToolStripExSupport2 iRibbon)
    Parameters
    Type Name Description
    IToolStripExSupport2 iRibbon
    Returns
    Type Description
    System.Drawing.Image

    GetLauncherImage(MetroToolStripRenderer.EBITMAP)

    Declaration
    protected virtual Image GetLauncherImage(MetroToolStripRenderer.EBITMAP eBitmap)
    Parameters
    Type Name Description
    MetroToolStripRenderer.EBITMAP eBitmap
    Returns
    Type Description
    System.Drawing.Image

    HasCaption(ToolStrip)

    Declaration
    protected virtual bool HasCaption(ToolStrip toolStrip)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip
    Returns
    Type Description
    System.Boolean

    Initialize(ToolStrip)

    Declaration
    protected override void Initialize(ToolStrip toolStrip)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStrip toolStrip

    InitializeItem(ToolStripItem)

    Declaration
    protected override void InitializeItem(ToolStripItem item)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItem item

    OnRenderArrow(ToolStripArrowRenderEventArgs)

    Declaration
    protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripArrowRenderEventArgs e

    OnRenderButtonBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected override void OnRenderButtonBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e

    OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected override void OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e

    OnRenderImageMargin(ToolStripRenderEventArgs)

    Declaration
    protected override void OnRenderImageMargin(ToolStripRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripRenderEventArgs e

    OnRenderItemBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected override void OnRenderItemBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e

    OnRenderItemCheck(ToolStripItemImageRenderEventArgs)

    Declaration
    protected override void OnRenderItemCheck(ToolStripItemImageRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemImageRenderEventArgs e

    OnRenderItemImage(ToolStripItemImageRenderEventArgs)

    Declaration
    protected override void OnRenderItemImage(ToolStripItemImageRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemImageRenderEventArgs e

    OnRenderItemText(ToolStripItemTextRenderEventArgs)

    Declaration
    protected override void OnRenderItemText(ToolStripItemTextRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemTextRenderEventArgs e

    OnRenderMenuItemBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e

    OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected override void OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e

    OnRenderSeparator(ToolStripSeparatorRenderEventArgs)

    Declaration
    protected override void OnRenderSeparator(ToolStripSeparatorRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripSeparatorRenderEventArgs e

    OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected override void OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e

    OnRenderToolStripBackground(ToolStripRenderEventArgs)

    Declaration
    protected override void OnRenderToolStripBackground(ToolStripRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripRenderEventArgs e

    OnRenderToolStripBorder(ToolStripRenderEventArgs)

    Declaration
    protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripRenderEventArgs e

    PaintBackgroundSelected(Graphics, Rectangle, Color)

    Declaration
    protected void PaintBackgroundSelected(Graphics g, Rectangle rc, Color clMetro)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rc
    System.Drawing.Color clMetro

    PaintDownArrow(Graphics, Rectangle, Color)

    Declaration
    protected virtual void PaintDownArrow(Graphics g, Rectangle rect, Color c)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color c

    PaintDropDownArrow(Graphics, Rectangle, Color)

    Declaration
    protected virtual void PaintDropDownArrow(Graphics g, Rectangle rect, Color c)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color c

    PaintGalleryCaption(Graphics, ToolStripGallery)

    Declaration
    protected virtual void PaintGalleryCaption(Graphics g, ToolStripGallery gallery)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    ToolStripGallery gallery

    PaintGalleryItems(Graphics, ToolStripGallery)

    Declaration
    protected virtual void PaintGalleryItems(Graphics g, ToolStripGallery gallery)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    ToolStripGallery gallery

    PaintLargeDownArrow(Graphics, Rectangle, Color)

    Declaration
    protected virtual void PaintLargeDownArrow(Graphics g, Rectangle rect, Color c)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color c

    PaintLargeUpArrow(Graphics, Rectangle, Color)

    Declaration
    protected virtual void PaintLargeUpArrow(Graphics g, Rectangle rect, Color c)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color c

    PaintLauncher(Graphics, Rectangle, IToolStripExSupport2)

    Declaration
    protected virtual void PaintLauncher(Graphics g, Rectangle rcCaption, IToolStripExSupport2 iRibbon)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rcCaption
    IToolStripExSupport2 iRibbon

    PaintOverflowButtonBackground(ToolStripItemRenderEventArgs)

    Declaration
    protected bool PaintOverflowButtonBackground(ToolStripItemRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripItemRenderEventArgs e
    Returns
    Type Description
    System.Boolean

    PaintScrollButtonBackground(Graphics, Rectangle, ScrollButtonState)

    Declaration
    protected virtual void PaintScrollButtonBackground(Graphics g, Rectangle rect, ScrollButtonState scrollButtonState)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    ScrollButtonState scrollButtonState

    PaintScrollerAdorning(Graphics, Rectangle)

    Declaration
    protected virtual void PaintScrollerAdorning(Graphics g, Rectangle rect)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect

    PaintScrollerBackground(Graphics, Rectangle, ScrollButtonState)

    Declaration
    protected virtual void PaintScrollerBackground(Graphics g, Rectangle rect, ScrollButtonState scrollButtonState)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    ScrollButtonState scrollButtonState

    PaintStandardScrollButtonBackground(Graphics, Rectangle, ScrollButtonState)

    Declaration
    protected virtual void PaintStandardScrollButtonBackground(Graphics g, Rectangle rect, ScrollButtonState scrollButtonState)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    ScrollButtonState scrollButtonState

    PaintToolStripGalleryDropDownBackground(ToolStripRenderEventArgs)

    Declaration
    protected virtual bool PaintToolStripGalleryDropDownBackground(ToolStripRenderEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.ToolStripRenderEventArgs e
    Returns
    Type Description
    System.Boolean

    PaintUpArrow(Graphics, Rectangle, Color)

    Declaration
    protected virtual void PaintUpArrow(Graphics g, Rectangle rect, Color c)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color c

    SetGraphicsMode(IntPtr, Int32)

    Declaration
    protected static int SetGraphicsMode(IntPtr hDC, int iMode)
    Parameters
    Type Name Description
    System.IntPtr hDC
    System.Int32 iMode
    Returns
    Type Description
    System.Int32

    SettingsChangedHandler()

    Handle changes of display settings and user preferences.

    Declaration
    protected void SettingsChangedHandler()

    SetWorldTransform(IntPtr, ref MetroToolStripRenderer.XFORM)

    Declaration
    protected static bool SetWorldTransform(IntPtr hDC, ref MetroToolStripRenderer.XFORM xform)
    Parameters
    Type Name Description
    System.IntPtr hDC
    MetroToolStripRenderer.XFORM xform
    Returns
    Type Description
    System.Boolean
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved