Class MetroToolStripRenderer
Inheritance
System.Object
MetroToolStripRenderer
Assembly: Syncfusion.Tools.Windows.dll
public class MetroToolStripRenderer : ToolStripProfessionalRenderer
Constructors
Declaration
public MetroToolStripRenderer()
Declaration
public MetroToolStripRenderer(Color colorTable, MetroToolStripRenderer.ERENDERTYPE erType)
Parameters
Fields
Declaration
protected static Blend m_blButtonCollapsed
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blButtonFlash
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blButtonSelected
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blButtonShadow
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blCaption
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blGrouped
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blImageBackground
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blMenuBar
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blMenuItemDown
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blMenuItemUp
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blScrollButton
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blScroller
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blScrollerBackground
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blStandardScrollButton
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blStatusBar
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected static Blend m_blToolBar
Field Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected Hashtable m_htBitmaps
Field Value
Type |
System.Collections.Hashtable |
Properties
Declaration
protected Bitmap ArrowDownImage { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Bitmap ArrowOverflow { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Bitmap ArrowRightImage { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Color BorderColor { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Pen ButtonHighlightBorder { get; }
Property Value
Declaration
protected Pen ButtonHighlightGrouped { get; }
Property Value
Declaration
protected Pen ButtonPressedBorder { get; }
Property Value
Declaration
protected Pen ButtonPressedGradientBegin { get; }
Property Value
Declaration
protected Pen ButtonPressedGradientEnd { get; }
Property Value
Declaration
protected Pen ButtonSelectedBorder { get; }
Property Value
Declaration
protected Pen ButtonSelectedGradientEnd { get; }
Property Value
Declaration
protected static StringFormat CaptionFormat { get; }
Property Value
Type |
System.Drawing.StringFormat |
Declaration
protected Color CaptionGradientBegin { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Color CaptionGradientEnd { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Color CaptionHighlightGradientBegin { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Color CaptionHighlightGradientEnd { get; }
Property Value
Type |
System.Drawing.Color |
CaptionText
Declaration
protected Color CaptionText { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Brush CheckBackground { get; }
Property Value
Type |
System.Drawing.Brush |
Declaration
protected Pen CheckBorder { get; }
Property Value
Declaration
protected Bitmap CheckButton { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Bitmap CheckedFlashImage { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Pen CollapsedBorderPen { get; }
Property Value
Declaration
protected Pen GroupBorder { get; }
Property Value
Declaration
protected Color GroupGradientBegin { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Color GroupGradientEnd { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Pen ImageBorderPen { get; }
Property Value
Declaration
protected Color LauncherBackground { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Pen LauncherBorder { get; }
Property Value
LauncherText
Declaration
protected Color LauncherText { get; }
Property Value
Type |
System.Drawing.Color |
LauncherTextSelected
Declaration
protected Color LauncherTextSelected { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Pen MenuBorder { get; }
Property Value
Declaration
protected Pen MenuItemBorder { get; }
Property Value
Declaration
protected Pen MenuItemPressedGradientEnd { get; }
Property Value
Declaration
protected Pen MenuStripBorder { get; }
Property Value
Declaration
protected Bitmap PressedFlashImage { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
public MetroToolStripRenderer.ERENDERTYPE RenderType { get; set; }
Property Value
Declaration
protected Bitmap SelectedFlashImage { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Brush Shadow { get; }
Property Value
Type |
System.Drawing.Brush |
Declaration
protected static Blend ToolBarBlend { get; }
Property Value
Type |
System.Drawing.Drawing2D.Blend |
Declaration
protected Pen ToolStripBorder { get; }
Property Value
Declaration
protected Brush ToolStripDropDownBackground { get; }
Property Value
Type |
System.Drawing.Brush |
Declaration
protected Color ToolStripHighlightGradientBegin { get; }
Property Value
Type |
System.Drawing.Color |
Declaration
protected Color ToolStripHighlightGradientEnd { get; }
Property Value
Type |
System.Drawing.Color |
Methods
Declaration
protected virtual void DrawBorders(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Declaration
protected virtual void DrawCaption(ToolStrip toolStrip)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
toolStrip |
|
Declaration
protected virtual void DrawCompactScrollers(Graphics g, ToolStripGallery gallery)
Parameters
Declaration
protected virtual void DrawEtchedBorders(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Declaration
protected virtual void DrawStandardScrollers(Graphics g, ToolStripGallery gallery)
Parameters
Declaration
protected virtual void DrawStaticEdgeBorders(ToolStrip ts)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
ts |
|
Declaration
protected Rectangle GetButtonBackgroundRect(ToolStripItem item, Rectangle rc)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
item |
|
System.Drawing.Rectangle |
rc |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
protected Rectangle GetButtonRect(ToolStripItem item)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
item |
|
Returns
Type |
System.Drawing.Rectangle |
Declaration
public static Rectangle GetButtonRect(ToolStripItem item, Rectangle rc, MetroToolStripRenderer.ERENDERTYPE erType)
Parameters
Returns
Type |
System.Drawing.Rectangle |
Declaration
public Size GetDownArrowSize()
Returns
Declaration
protected Bitmap GetFlashImage(Color colorBase, Size size)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
colorBase |
|
System.Drawing.Size |
size |
|
Returns
Type |
System.Drawing.Bitmap |
Declaration
protected Brush GetKnownBrush(MetroToolStripRenderer.EBRUSH eBrush, Color color)
Parameters
Returns
Type |
System.Drawing.Brush |
Declaration
protected Pen GetKnownPen(MetroToolStripRenderer.EPEN ePen, Color color, int width)
Parameters
Returns
Declaration
protected virtual Image GetLauncherImage(IToolStripExSupport2 iRibbon)
Parameters
Returns
Type |
System.Drawing.Image |
Declaration
protected virtual Image GetLauncherImage(MetroToolStripRenderer.EBITMAP eBitmap)
Parameters
Returns
Type |
System.Drawing.Image |
Declaration
protected virtual bool HasCaption(ToolStrip toolStrip)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
toolStrip |
|
Returns
Declaration
protected override void Initialize(ToolStrip toolStrip)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStrip |
toolStrip |
|
Declaration
protected override void InitializeItem(ToolStripItem item)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
item |
|
Declaration
protected override void OnRenderArrow(ToolStripArrowRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripArrowRenderEventArgs |
e |
|
Declaration
protected override void OnRenderButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Declaration
protected override void OnRenderDropDownButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Declaration
protected override void OnRenderImageMargin(ToolStripRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripRenderEventArgs |
e |
|
Declaration
protected override void OnRenderItemBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Declaration
protected override void OnRenderItemCheck(ToolStripItemImageRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemImageRenderEventArgs |
e |
|
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 |
|
Declaration
protected override void OnRenderMenuItemBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Declaration
protected override void OnRenderOverflowButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Declaration
protected override void OnRenderSeparator(ToolStripSeparatorRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripSeparatorRenderEventArgs |
e |
|
Declaration
protected override void OnRenderSplitButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Declaration
protected override void OnRenderToolStripBackground(ToolStripRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripRenderEventArgs |
e |
|
Declaration
protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripRenderEventArgs |
e |
|
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 |
|
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 |
|
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 |
|
Declaration
protected virtual void PaintGalleryCaption(Graphics g, ToolStripGallery gallery)
Parameters
Declaration
protected virtual void PaintGalleryItems(Graphics g, ToolStripGallery gallery)
Parameters
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 |
|
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 |
|
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 |
|
Declaration
protected bool PaintOverflowButtonBackground(ToolStripItemRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItemRenderEventArgs |
e |
|
Returns
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 |
|
Declaration
protected virtual void PaintScrollerAdorning(Graphics g, Rectangle rect)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rect |
|
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 |
|
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 |
|
Declaration
protected virtual bool PaintToolStripGalleryDropDownBackground(ToolStripRenderEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripRenderEventArgs |
e |
|
Returns
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 |
|
Declaration
protected static int SetGraphicsMode(IntPtr hDC, int iMode)
Parameters
Type |
Name |
Description |
System.IntPtr |
hDC |
|
System.Int32 |
iMode |
|
Returns
Handle changes of display settings and user preferences.
Declaration
protected void SettingsChangedHandler()
Declaration
protected static bool SetWorldTransform(IntPtr hDC, ref MetroToolStripRenderer.XFORM xform)
Parameters
Returns