WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RibbonPanelRenderer

    Show / Hide Table of Contents

    Class RibbonPanelRenderer

    The RibbonPanelRenderer class.

    Inheritance
    System.Object
    RibbonPanelRenderer
    Office2010RibbonPanelRenderer
    Office2013RibbonPanelRenderer
    Office2016RibbonPanelRenderer
    TouchStyleRibbonPanelRenderer
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    System.Drawing.Bitmap

    RightArrow

    Declaration
    protected Bitmap RightArrow { get; }
    Property Value
    Type Description
    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 Description
    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

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved