Class Office12ToolStripRenderer
Inheritance
System.Object
Office12ToolStripRenderer
Assembly: Syncfusion.Tools.Windows.dll
public class Office12ToolStripRenderer : ToolStripProfessionalRenderer
Constructors
Declaration
public Office12ToolStripRenderer()
Declaration
public Office12ToolStripRenderer(Office12ColorTable colorTable)
Parameters
Declaration
public Office12ToolStripRenderer(Office12ColorTable colorTable, Office12ToolStripRenderer.ERENDERTYPE erType)
Parameters
Declaration
public Office12ToolStripRenderer(Office12ToolStripRenderer.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
Gets the Left Arrow for OverflowDropDown items.
Declaration
protected Bitmap OverflowItemLeftArrow { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Bitmap OverflowItemRightArrow { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
protected Bitmap PressedFlashImage { get; }
Property Value
Type |
System.Drawing.Bitmap |
Declaration
public Office12ToolStripRenderer.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 Rectangle DPI_125_GetButtonRect(ToolStripItem item)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ToolStripItem |
item |
|
Returns
Type |
System.Drawing.Rectangle |
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, Office12ToolStripRenderer.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 LinearGradientBrush GetHorizontalBrush(ref Rectangle rc, Color cl1, Color cl2)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rc |
|
System.Drawing.Color |
cl1 |
|
System.Drawing.Color |
cl2 |
|
Returns
Type |
System.Drawing.Drawing2D.LinearGradientBrush |
Declaration
protected Brush GetKnownBrush(Office12ToolStripRenderer.EBRUSH eBrush, Color color)
Parameters
Returns
Type |
System.Drawing.Brush |
Declaration
protected Pen GetKnownPen(Office12ToolStripRenderer.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(Office12ToolStripRenderer.EBITMAP eBitmap)
Parameters
Returns
Type |
System.Drawing.Image |
Declaration
protected LinearGradientBrush GetVerticalBrush(ref Rectangle rc, Color cl1, Color cl2)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
rc |
|
System.Drawing.Color |
cl1 |
|
System.Drawing.Color |
cl2 |
|
Returns
Type |
System.Drawing.Drawing2D.LinearGradientBrush |
Declaration
protected LinearGradientBrush GetVerticalBrush(int top, int height, Color cl1, Color cl2)
Parameters
Type |
Name |
Description |
System.Int32 |
top |
|
System.Int32 |
height |
|
System.Drawing.Color |
cl1 |
|
System.Drawing.Color |
cl2 |
|
Returns
Type |
System.Drawing.Drawing2D.LinearGradientBrush |
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 PaintButtonBorder(Graphics g, Rectangle rc, Office12ToolStripRenderer.EBUTTONSTATE state)
Parameters
Declaration
protected void PaintButtonPressedShadow(Graphics g, Rectangle rc)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rc |
|
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 void PaintGradientSelected(Graphics g, Rectangle rc, Color clBegin, Color clEnd)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
rc |
|
System.Drawing.Color |
clBegin |
|
System.Drawing.Color |
clEnd |
|
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 Office12ToolStripRenderer.XFORM xform)
Parameters
Returns