This class allows users to draw menu for Office2007 visual style.
Inheritance
System.Object
Office2007MenuPainter
Assembly: Syncfusion.Tools.Windows.dll
public class Office2007MenuPainter : Object
Constructors
Declaration
public Office2007MenuPainter()
Properties
Gets or sets color table for Office2007 visual style.
Declaration
public static Office2007Colors ColorTable { get; set; }
Property Value
Methods
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
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 |