Class Office2010BarItemPainter
Inheritance
System.Object
Office2010BarItemPainter
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 Office2010BarItemPainter
Constructors
Office2010BarItemPainter()
Declaration
public Office2010BarItemPainter()
Fields
m_htBitmaps
Hashtable for flash bitmaps.
Declaration
protected static Hashtable m_htBitmaps
Field Value
Type |
---|
System.Collections.Hashtable |
Properties
CheckedFlashImage
Gets bitmap for checked flash.
Declaration
protected static Bitmap CheckedFlashImage { get; }
Property Value
Type |
---|
System.Drawing.Bitmap |
ColorTable
Gets or sets color table for Office2010 visual style.
Declaration
public static Office2010Colors ColorTable { get; set; }
Property Value
Type |
---|
Office2010Colors |
PressedFlashImage
Gets bitmap for pressed flash.
Declaration
protected static Bitmap PressedFlashImage { get; }
Property Value
Type |
---|
System.Drawing.Bitmap |
SelectedFlashImage
Gets bitmap for selected flash.
Declaration
protected static Bitmap SelectedFlashImage { get; }
Property Value
Type |
---|
System.Drawing.Bitmap |
Methods
DrawBarItem(Graphics, Rectangle, ItemState, Boolean)
Draws BarItem.
Declaration
public static void DrawBarItem(Graphics g, Rectangle rect, ItemState state, bool bHorizontal)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
ItemState | state | |
System.Boolean | bHorizontal |
DrawComboBoxBarItem(Graphics, Rectangle, ItemState)
Draws background for ComboBoxBarItem.
Declaration
public static void DrawComboBoxBarItem(Graphics g, Rectangle rect, ItemState state)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
ItemState | state |
DrawComboButton(Graphics, Rectangle, ItemState, Boolean)
Draws ComboButton for ComboBoxBarItem.
Declaration
public static void DrawComboButton(Graphics g, Rectangle rect, ItemState state, bool bHorizontal)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
ItemState | state | |
System.Boolean | bHorizontal |
DrawDropDownBarItem(Graphics, Rectangle, ItemState, Boolean)
Draws DropDownBarItem.
Declaration
public static void DrawDropDownBarItem(Graphics g, Rectangle rect, ItemState state, bool bHorizontal)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
ItemState | state | |
System.Boolean | bHorizontal |
DrawSeparator(Graphics, RectangleF, Boolean)
Draws separator.
Declaration
public static void DrawSeparator(Graphics g, RectangleF rect, bool bRTL)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.RectangleF | rect | |
System.Boolean | bRTL |
DrawTextBoxBarItem(Graphics, Rectangle, ItemState, Boolean)
Draws TextBoxBarItem.
Declaration
public static void DrawTextBoxBarItem(Graphics g, Rectangle rect, ItemState state, bool bHorizontal)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | rect | |
ItemState | state | |
System.Boolean | bHorizontal |
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 |
GetFlashImage(Color, Size)
Gets flash bitmap.
Declaration
protected static Bitmap GetFlashImage(Color colorBase, Size size)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Color | colorBase | |
System.Drawing.Size | size |
Returns
Type |
---|
System.Drawing.Bitmap |
GetHorizontalBrush(Rectangle, Color, Color)
Gets horizontal linear gradient brush.
Declaration
protected static LinearGradientBrush GetHorizontalBrush(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 |
GetHorizontalBrush(Int32, Int32, Color, Color)
Gets horizontal linear gradient brush.
Declaration
protected static LinearGradientBrush GetHorizontalBrush(int left, int width, Color cl1, Color cl2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | |
System.Int32 | width | |
System.Drawing.Color | cl1 | |
System.Drawing.Color | cl2 |
Returns
Type |
---|
System.Drawing.Drawing2D.LinearGradientBrush |
GetRoundedPolygon(Rectangle, Int32)
Gets rounded polygon.
Declaration
public static Point[] GetRoundedPolygon(Rectangle rc, int iRadius)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | rc | |
System.Int32 | iRadius |
Returns
Type |
---|
System.Drawing.Point[] |
GetVerticalBrush(Rectangle, Color, Color)
Gets vertical linear gradient brush.
Declaration
protected static LinearGradientBrush GetVerticalBrush(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 |
GetVerticalBrush(Int32, Int32, Color, Color)
Gets vertical linear gradient brush.
Declaration
protected static 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 |