Class RibbonPanelRenderer
The RibbonPanelRenderer class.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class RibbonPanelRenderer
Constructors
RibbonPanelRenderer(Office12ColorTable)
Constructor of the RibbonPanelRenderer
Declaration
public RibbonPanelRenderer(Office12ColorTable colorTable)
Parameters
Type | Name | Description |
---|---|---|
Office12ColorTable | colorTable | The Office12ColorTable |
Properties
LeftArrow
Declaration
protected Bitmap LeftArrow { get; }
Property Value
Type |
---|
System.Drawing.Bitmap |
RightArrow
Declaration
protected Bitmap RightArrow { get; }
Property Value
Type |
---|
System.Drawing.Bitmap |
Methods
DrawBackground(RibbonPanel, PaintEventArgs)
Draw the RibbonPanel background.
Declaration
public virtual void DrawBackground(RibbonPanel panel, PaintEventArgs pe)
Parameters
Type | Name | Description |
---|---|---|
RibbonPanel | panel | The RibbonPanel instance. |
System.Windows.Forms.PaintEventArgs | pe | The PaintEventArgs contains the data. |
DrawBorders(Graphics, RibbonPanel, ToolStripTabGroup, Rectangle)
Draw the borders
Declaration
public virtual void DrawBorders(Graphics g, RibbonPanel panel, ToolStripTabGroup tsTabGroup, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics object which is used paint the RibbonPanel. |
RibbonPanel | panel | The RibbonPanel instance. |
ToolStripTabGroup | tsTabGroup | The ToolStripTabGroup instance. |
System.Drawing.Rectangle | rect | The rectangle which needs to draw the border. |
DrawFrame(RibbonPanel)
Draw the Frame.
Declaration
public virtual void DrawFrame(RibbonPanel panel)
Parameters
Type | Name | Description |
---|---|---|
RibbonPanel | panel | The RibbonPanel instance. |
DrawLeftScroll(Graphics, RibbonPanel, Rectangle)
Draw the Left scroll button.
Declaration
public virtual void DrawLeftScroll(Graphics g, RibbonPanel panel, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics object which is used paint scroll |
RibbonPanel | panel | The RibbonPanel instance. |
System.Drawing.Rectangle | rect | The rectangle which needs to draw the scroll button. |
DrawRightScroll(Graphics, RibbonPanel, Rectangle)
Draw the Right scroll button.
Declaration
public virtual void DrawRightScroll(Graphics g, RibbonPanel panel, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics object which is used paint scroll |
RibbonPanel | panel | The RibbonPanel instance. |
System.Drawing.Rectangle | rect | The rectangle which needs to draw the scroll button. |
GetBorderWidth(RibbonPanel)
Gets the Ribbon panel border width.
Declaration
public int GetBorderWidth(RibbonPanel panel)
Parameters
Type | Name | Description |
---|---|---|
RibbonPanel | panel | The RibbonPanel instance. |
Returns
Type |
---|
System.Int32 |
IsPanelAboveTheTabItem(RibbonPanel)
Indicates whether RibbonPanel is located above the corresponding TabItem.
Declaration
protected static bool IsPanelAboveTheTabItem(RibbonPanel panel)
Parameters
Type | Name | Description |
---|---|---|
RibbonPanel | panel | RibbonPanel control. |
Returns
Type | Description |
---|---|
System.Boolean | Returns bool value |