WinForms

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

    Show / Hide Table of Contents

    Class CommandBarPainter

    Represents helper methods for drawing primitives of the CommandBar and ControlBar with like Office2003 and OfficeXP visual style.

    Inheritance
    System.Object
    CommandBarPainter
    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 sealed class CommandBarPainter

    Constructors

    CommandBarPainter()

    Declaration
    public CommandBarPainter()

    Methods

    PaintControlBarBackground(Graphics, Rectangle, Rectangle, Boolean, Boolean, Color, Color, Color, Color, Color)

    Draws background for ControlBar.

    Declaration
    public static void PaintControlBarBackground(Graphics g, Rectangle rect, Rectangle captionRect, bool bRTL, bool bContainFocus, Color borderColor, Color captionLightColor, Color captionDarkColor, Color activeLightColor, Color activeDarkColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Rectangle captionRect
    System.Boolean bRTL
    System.Boolean bContainFocus
    System.Drawing.Color borderColor
    System.Drawing.Color captionLightColor
    System.Drawing.Color captionDarkColor
    System.Drawing.Color activeLightColor
    System.Drawing.Color activeDarkColor

    PaintControlBarCloseButton(Graphics, Rectangle, Color, Color)

    Draws close button for ControlBar.

    Declaration
    public static void PaintControlBarCloseButton(Graphics g, Rectangle rect, Color borderColor, Color fillColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color borderColor
    System.Drawing.Color fillColor

    PaintControlBarDropDown(Graphics, Rectangle, Boolean, Color, Color)

    Draws DropDown button for ControlBar.

    Declaration
    public static void PaintControlBarDropDown(Graphics g, Rectangle rect, bool bRTL, Color borderColor, Color fillColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Drawing.Color borderColor
    System.Drawing.Color fillColor

    PaintControlBarDropDownThemed(Graphics, Rectangle, Color, Color)

    Draws DropDown button for ControlBar with themes.

    Declaration
    public static void PaintControlBarDropDownThemed(Graphics g, Rectangle rect, Color borderColor, Color fillColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color borderColor
    System.Drawing.Color fillColor

    PaintControlBarGripperOfficeXP(Graphics, Rectangle, Int32, Boolean, Boolean, Color)

    Draws gripper for OfficeXP visual style.

    Declaration
    public static void PaintControlBarGripperOfficeXP(Graphics g, Rectangle rect, int captionHeight, bool bRTL, bool bFloating, Color gripperColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Int32 captionHeight
    System.Boolean bRTL
    System.Boolean bFloating
    System.Drawing.Color gripperColor

    PaintControlBarText(Graphics, Rectangle, String, Font, Color, Boolean)

    Draws text of the ControlBar for like Office2003 visual style.

    Declaration
    public static void PaintControlBarText(Graphics g, Rectangle rect, string text, Font textFont, Color foreColor, bool bRTL)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.String text
    System.Drawing.Font textFont
    System.Drawing.Color foreColor
    System.Boolean bRTL

    PaintDockedBackground(Graphics, Boolean, Boolean, Rectangle, Color, Color, Color)

    Draws the background region of the CommandBar like Office2003 visual style.

    Declaration
    public static void PaintDockedBackground(Graphics g, bool bRTL, bool bVertical, Rectangle clientRect, Color barColorLight, Color barColorDark, Color barBorderColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Boolean bRTL
    System.Boolean bVertical
    System.Drawing.Rectangle clientRect
    System.Drawing.Color barColorLight
    System.Drawing.Color barColorDark
    System.Drawing.Color barBorderColor

    PaintDockedBackgroundOfficeXP(Graphics, Boolean, DockStyle, Rectangle, Color, Boolean)

    Draws the background region of the CommandBar for OfficeXP visual style.

    Declaration
    public static void PaintDockedBackgroundOfficeXP(Graphics g, bool bRTL, DockStyle dockState, Rectangle rect, Color backColor, bool bDrawTopLine)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Boolean bRTL
    System.Windows.Forms.DockStyle dockState
    System.Drawing.Rectangle rect
    System.Drawing.Color backColor
    System.Boolean bDrawTopLine

    PaintDockedText(Graphics, Rectangle, String, Font, Color, Boolean, Boolean)

    Draws text of the CommandBar for like Office2003 visual style.

    Declaration
    public static void PaintDockedText(Graphics g, Rectangle rect, string text, Font textFont, Color foreColor, bool bRTL, bool bVertical)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.String text
    System.Drawing.Font textFont
    System.Drawing.Color foreColor
    System.Boolean bRTL
    System.Boolean bVertical

    PaintDropDownArrowsThemed(Graphics, Rectangle, Boolean, Boolean, Boolean, Color, Boolean)

    Draws arrows for DropDown button of the CommandBar with themes.

    Declaration
    public static void PaintDropDownArrowsThemed(Graphics g, Rectangle rect, bool bRTL, bool bVertical, bool bShowChevron, Color chevronColor, bool bShowArrow)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Boolean bVertical
    System.Boolean bShowChevron
    System.Drawing.Color chevronColor
    System.Boolean bShowArrow

    PaintDropDownButton(Graphics, Rectangle, Boolean, Boolean, Boolean, Color, Color, Color, Boolean)

    Draws DropDown button for like Office2003 visual style.

    Declaration
    public static void PaintDropDownButton(Graphics g, Rectangle rect, bool bRTL, bool bVertical, bool bShowChevron, Color lightColor, Color darkColor, Color chevronColor, bool bShowArrow)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Boolean bVertical
    System.Boolean bShowChevron
    System.Drawing.Color lightColor
    System.Drawing.Color darkColor
    System.Drawing.Color chevronColor
    System.Boolean bShowArrow

    PaintDropDownButtonOfficeXP(Graphics, Rectangle, Boolean, Boolean, Boolean, Color, Color, Color, Boolean)

    Draws DropDown button for OfficeXP visual style.

    Declaration
    public static void PaintDropDownButtonOfficeXP(Graphics g, Rectangle rect, bool bRTL, bool bVertical, bool bShowChevron, Color borderColor, Color fillColor, Color chevronColor, bool bShowArrow)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Boolean bVertical
    System.Boolean bShowChevron
    System.Drawing.Color borderColor
    System.Drawing.Color fillColor
    System.Drawing.Color chevronColor
    System.Boolean bShowArrow

    PaintFloatingBackground(Graphics, Rectangle, Rectangle, Color, Color, Color, Color)

    Draws background of the floating CommandBar like Office2003 visual style.

    Declaration
    public static void PaintFloatingBackground(Graphics g, Rectangle clientRect, Rectangle barRect, Color backColor, Color borderColor, Color startColor, Color endColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle clientRect
    System.Drawing.Rectangle barRect
    System.Drawing.Color backColor
    System.Drawing.Color borderColor
    System.Drawing.Color startColor
    System.Drawing.Color endColor

    PaintFloatingCloseButton(Graphics, Rectangle, Color, Color, Color)

    Draws close button of the floating CommandBar like Office2003 visual style.

    Declaration
    public static void PaintFloatingCloseButton(Graphics g, Rectangle rect, Color borderColor, Color fillColor, Color buttonColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color borderColor
    System.Drawing.Color fillColor
    System.Drawing.Color buttonColor

    PaintFloatingDropDownArrowsThemed(Graphics, Rectangle, Boolean)

    Draws arrow for DropDown button of the floating CommandBar with themes.

    Declaration
    public static void PaintFloatingDropDownArrowsThemed(Graphics g, Rectangle rect, bool bRTL)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL

    PaintFloatingDropDownButton(Graphics, Rectangle, Color, Color, Color)

    Draws DropDown button of the floating CommandBar like Office2003 visual style.

    Declaration
    public static void PaintFloatingDropDownButton(Graphics g, Rectangle rect, Color borderColor, Color fillColor, Color buttonColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Drawing.Color borderColor
    System.Drawing.Color fillColor
    System.Drawing.Color buttonColor

    PaintFloatingText(Graphics, Rectangle, String, Font, Color, Boolean)

    Draws text of the floating CommandBar for like Office2003 visual style.

    Declaration
    public static void PaintFloatingText(Graphics g, Rectangle rect, string text, Font textFont, Color foreColor, bool bRTL)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.String text
    System.Drawing.Font textFont
    System.Drawing.Color foreColor
    System.Boolean bRTL

    PaintGripper(Graphics, Rectangle, Boolean, Boolean, Color, Color)

    Draws gripper for like Office2003 visual style.

    Declaration
    public static void PaintGripper(Graphics g, Rectangle rect, bool bRTL, bool bVertical, Color lightColor, Color darkColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Boolean bVertical
    System.Drawing.Color lightColor
    System.Drawing.Color darkColor

    PaintGripperOfficeXP(Graphics, Rectangle, Boolean, DockStyle, Color)

    Draws gripper for OfficeXP visual style.

    Declaration
    public static void PaintGripperOfficeXP(Graphics g, Rectangle rect, bool bRTL, DockStyle dockState, Color gripperColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Windows.Forms.DockStyle dockState
    System.Drawing.Color gripperColor

    PaintMetroGripper(Graphics, Rectangle, Boolean, Boolean, Color, Color)

    Draws gripper for like Metro visual style.

    Declaration
    public static void PaintMetroGripper(Graphics g, Rectangle rect, bool bRTL, bool bVertical, Color lightColor, Color darkColor)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Rectangle rect
    System.Boolean bRTL
    System.Boolean bVertical
    System.Drawing.Color lightColor
    System.Drawing.Color darkColor
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved