Class Office2007MenuPainter
This class allows users to draw menu for Office2007 visual style.
Inheritance
System.Object
Office2007MenuPainter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class Office2007MenuPainter
Constructors
Office2007MenuPainter()
Declaration
public Office2007MenuPainter()
Properties
ColorTable
Gets or sets color table for Office2007 visual style.
Declaration
public static Office2007Colors ColorTable { get; set; }
Property Value
Type |
---|
Office2007Colors |
Methods
DrawComboButton(Graphics, Rectangle, ButtonState, Boolean, Boolean, Boolean)
Draws ComboButton for ComboBox of the menu.
Declaration
public static void DrawComboButton(Graphics g, Rectangle rect, ButtonState buttonState, bool bDroppedDown, bool bSelected, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Windows.Forms.ButtonState | buttonState | |
System.Boolean | bDroppedDown | |
System.Boolean | bSelected | |
System.Boolean | bRTL |
DrawMenuBorder(Graphics, Rectangle, Boolean, Boolean)
Draws border for menu.
Declaration
public static void DrawMenuBorder(Graphics g, Rectangle rect, bool bParent, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Boolean | bParent | |
System.Boolean | bRTL |
DrawMenuChecked(Graphics, Rectangle, Boolean)
Draws check mark for menu.
Declaration
public static void DrawMenuChecked(Graphics g, Rectangle rect, bool bDrawCheckmark)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Boolean | bDrawCheckmark |
DrawMenuColumn(Graphics, Rectangle, Boolean)
Draws column background of the menu.
Declaration
public static void DrawMenuColumn(Graphics g, Rectangle rect, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Boolean | bRTL |
DrawMenuDropDownBarItem(Graphics, Rectangle, Boolean, Boolean)
Declaration
public static void DrawMenuDropDownBarItem(Graphics g, Rectangle rect, bool selected, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Boolean | selected | |
System.Boolean | bRTL |
DrawMenuItemHighlightBackground(Graphics, Rectangle)
Draws background for highlighted item of the menu.
Declaration
public static void DrawMenuItemHighlightBackground(Graphics g, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect |
DrawMenuItemHighlightBorder(Graphics, Rectangle)
Draws border for highlighted item of the menu.
Declaration
public static void DrawMenuItemHighlightBorder(Graphics g, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect |
DrawMenuParentBarItem(Graphics, Rectangle, Boolean)
Declaration
public static void DrawMenuParentBarItem(Graphics g, Rectangle rect, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Boolean | bRTL |
DrawMenuTextBoxItem(Graphics, Rectangle, Boolean)
Draws TextBox item of the menu.
Declaration
public static void DrawMenuTextBoxItem(Graphics g, Rectangle rect, bool selected)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
System.Boolean | selected |
GetAlphaBlendedColor(Color, Color, Int32)
Gets modified color.
Declaration
public static Color GetAlphaBlendedColor(Color src, Color dest, int alpha)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | src | |
System.Drawing.Color | dest | |
System.Int32 | alpha |
Returns
Type |
---|
System.Drawing.Color |
GetMenuRegion(Rectangle, Boolean, Boolean)
Gets rounded region for menu.
Declaration
public static Region GetMenuRegion(Rectangle rect, bool bParent, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rect | |
System.Boolean | bParent | |
System.Boolean | bRTL |
Returns
Type |
---|
System.Drawing.Region |