IBarRenderer Interface
Provides the base requirements for a renderer of bar controls.
public interface IBarRenderer : IUIRenderer
Properties
DockableToolBarDockedPadding
Gets or sets the padding inside of docked dockable toolbars.
Padding DockableToolBarDockedPadding { get; set; }
Property Value
- Padding:
The padding inside of docked dockable toolbars.
DockableToolBarFloatingBorderWidth
Gets or sets the border width of a floating dockable toolbar.
int DockableToolBarFloatingBorderWidth { get; set; }
Property Value
- Int32:
The border width of a floating dockable toolbar.
DockableToolBarFloatingPadding
Gets or sets the padding inside of floating dockable toolbars.
Padding DockableToolBarFloatingPadding { get; set; }
Property Value
- Padding:
The padding inside of floating dockable toolbars.
DockableToolBarFloatingTitleBarPadding
Gets or sets the padding inside of floating dockable toolbar title bars.
Padding DockableToolBarFloatingTitleBarPadding { get; set; }
Property Value
- Padding:
The padding inside of floating dockable toolbar title bars.
DockableToolBarGripperExtent
Gets or sets the extent of a dockable toolbar gripper.
int DockableToolBarGripperExtent { get; set; }
Property Value
- Int32:
The extent of a dockable toolbar gripper.
DockableToolBarOptionsButtonExtent
Gets or sets the extent of a dockable toolbar options button.
int DockableToolBarOptionsButtonExtent { get; set; }
Property Value
- Int32:
The extent of a dockable toolbar options button.
MenuBarPadding
Gets or sets the padding inside of menu bars.
MenuDefaultColumnWidth
Gets or sets the default width of a menu column.
MenuGripperHeight
Gets or sets the height of a menu gripper.
MenuOverflowButtonHeight
Gets or sets the height of a menu overflow button.
int MenuOverflowButtonHeight { get; set; }
Property Value
- Int32:
The height of a menu overflow button.
MenuSeparatorHeight
Gets or sets the height of a menu separator.
MenuSplitButtonPopupExtent
Gets or sets the extent of the popup portion of a split button in a menu.
int MenuSplitButtonPopupExtent { get; set; }
Property Value
- Int32:
The extent of the popup portion of a split button in a menu.
MenuTextMarginHorizontal
Gets or sets the horizontal padding around menu text.
int MenuTextMarginHorizontal { get; set; }
Property Value
- Int32:
The horizontal padding around menu text.
MenuTextMarginVertical
Gets or sets the vertical padding around menu text.
int MenuTextMarginVertical { get; set; }
Property Value
- Int32:
The vertical padding around menu text.
PopupButtonLinkArrowStyle
Gets or sets the arrow style to use when drawing BarPopupButtonLink command links.
BarPopupButtonLinkArrowStyle PopupButtonLinkArrowStyle { get; set; }
Property Value
- BarPopupButtonLinkArrowStyle:
A BarPopupButtonLinkArrowStyle indicating the arrow style.
ToolBarAscentMargin
Gets or sets the ascent margin of a toolbar.
ToolBarExtentMargin
Gets or sets the extent margin of a toolbar.
ToolBarSeparatorExtent
Gets or sets the extent of a toolbar separator.
ToolBarSplitButtonPopupExtent
Gets or sets the extent of the popup portion of a split button in a toolbar.
int ToolBarSplitButtonPopupExtent { get; set; }
Property Value
- Int32:
The extent of the popup portion of a split button in a toolbar.
Methods
ArrangeComboBoxChildControl(PaintEventArgs, Rectangle, BarComboBoxLink)
Arranges a BarComboBoxLink's child control.
void ArrangeComboBoxChildControl(PaintEventArgs e, Rectangle bounds, BarComboBoxLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to arrange. |
link | BarComboBoxLink | The BarComboBoxLink being arranged. |
ArrangeTextBoxChildControl(PaintEventArgs, Rectangle, BarTextBoxLink)
Arranges a BarTextBoxLink's child control.
void ArrangeTextBoxChildControl(PaintEventArgs e, Rectangle bounds, BarTextBoxLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to arrange. |
link | BarTextBoxLink | The BarTextBoxLink being arranged. |
DrawButtonLink(PaintEventArgs, Rectangle, BarButtonLink)
Draws a BarButtonLink.
void DrawButtonLink(PaintEventArgs e, Rectangle bounds, BarButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarButtonLink | The BarButtonLink being painted. |
DrawComboBoxLink(PaintEventArgs, Rectangle, BarComboBoxLink)
Draws a BarComboBoxLink.
void DrawComboBoxLink(PaintEventArgs e, Rectangle bounds, BarComboBoxLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarComboBoxLink | The BarComboBoxLink being painted. |
DrawComboBoxLinkItem(DrawItemEventArgs, BarComboBoxLink, Object)
Draws a BarComboBoxLink item.
void DrawComboBoxLinkItem(DrawItemEventArgs e, BarComboBoxLink link, object item)
Parameter | Type | Description |
---|---|---|
e | DrawItemEventArgs | A DrawItemEventArgs that contains the event data. |
link | BarComboBoxLink | The BarComboBoxLink that owns the item. |
item | Object | The item to draw. |
DrawCommandInCustomizeList(PaintEventArgs, Rectangle, BarManager, BarCommand, UIElementDrawState, Boolean)
Draws a BarCommand for a Customize list.
void DrawCommandInCustomizeList(PaintEventArgs e, Rectangle bounds, BarManager barManager, BarCommand command, UIElementDrawState drawState, bool useCommandName)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
barManager | BarManager | The BarManager for which the command Customize list is created. |
command | BarCommand | The BarCommand being painted. |
drawState | UIElementDrawState | A UIElementDrawState specifying draw state. |
useCommandName | Boolean | Whether to draw the bar command using the command name instead of the command text. |
DrawCommandLinkInCustomizeList(PaintEventArgs, Rectangle, BarManager, BarCommandLink, UIElementDrawState, Boolean)
Draws a BarCommandLink for a Customize list.
void DrawCommandLinkInCustomizeList(PaintEventArgs e, Rectangle bounds, BarManager barManager, BarCommandLink commandLink, UIElementDrawState drawState, bool showShortcut)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
barManager | BarManager | The BarManager for which the command link Customize list is created. |
commandLink | BarCommandLink | The BarCommandLink being painted. |
drawState | UIElementDrawState | A UIElementDrawState specifying draw state. |
showShortcut | Boolean |
|
DrawCommandLinkSelectionBorder(PaintEventArgs, Rectangle, BarCommandLink)
Draws the selection border around the specified BarCommandLink if it is currently selected by a BarManager.
void DrawCommandLinkSelectionBorder(PaintEventArgs e, Rectangle bounds, BarCommandLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarCommandLink | The BarCommandLink being painted. |
DrawDockableToolBarBackground(PaintEventArgs, Rectangle, DockableToolBar)
Draws the background of a dockable toolbar.
void DrawDockableToolBarBackground(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
toolBar | DockableToolBar | The DockableToolBar being painted. |
DrawDockableToolBarFloatingContainerBackground(PaintEventArgs, Rectangle, DockableToolBar)
Draws the background of a dockable toolbar floating container.
void DrawDockableToolBarFloatingContainerBackground(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
toolBar | DockableToolBar | The DockableToolBar being painted. |
DrawDockableToolBarFloatingTitleBar(PaintEventArgs, Rectangle, DockableToolBar)
Draws a floating dockable toolbar title bar.
void DrawDockableToolBarFloatingTitleBar(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
toolBar | DockableToolBar | The DockableToolBar being painted. |
DrawDockableToolBarGripper(PaintEventArgs, Rectangle, DockableToolBar)
Draws a dockable toolbar gripper.
void DrawDockableToolBarGripper(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
toolBar | DockableToolBar | The DockableToolBar being painted. |
DrawDockableToolBarOptionsButton(PaintEventArgs, Rectangle, DockableToolBar, BarPopupButtonLink)
Draws a dockable toolbar options button.
void DrawDockableToolBarOptionsButton(PaintEventArgs e, Rectangle bounds, DockableToolBar toolBar, BarPopupButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
toolBar | DockableToolBar | The DockableToolBar containing the link being painted. |
link | BarPopupButtonLink | The BarPopupButtonLink being painted. |
DrawDockAreaBackground(PaintEventArgs, Rectangle, BarDockArea)
Draws the background of a BarDockArea.
void DrawDockAreaBackground(PaintEventArgs e, Rectangle bounds, BarDockArea dockArea)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
dockArea | BarDockArea | The BarDockArea being painted. |
DrawExpanderButtonLink(PaintEventArgs, Rectangle, BarExpanderButtonLink)
Draws a BarExpanderButtonLink.
void DrawExpanderButtonLink(PaintEventArgs e, Rectangle bounds, BarExpanderButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarExpanderButtonLink | The BarExpanderButtonLink being painted. |
DrawLabelLink(PaintEventArgs, Rectangle, BarLabelLink)
Draws a BarLabelLink.
void DrawLabelLink(PaintEventArgs e, Rectangle bounds, BarLabelLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarLabelLink | The BarLabelLink being painted. |
DrawMenuBackground(PaintEventArgs, Rectangle, IBarControl)
Draws the background of a bar menu.
void DrawMenuBackground(PaintEventArgs e, Rectangle bounds, IBarControl menu)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
menu | IBarControl | The IBarControl being painted. |
DrawMenuGripper(PaintEventArgs, Rectangle, IUIElement)
Draws a menu gripper.
void DrawMenuGripper(PaintEventArgs e, Rectangle bounds, IUIElement gripper)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
gripper | IUIElement | The IUIElement being painted. |
DrawMenuOverflowButton(PaintEventArgs, Rectangle, IUIElement, Boolean)
Draws a menu overflow button.
void DrawMenuOverflowButton(PaintEventArgs e, Rectangle bounds, IUIElement button, bool hasDownArrow)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
button | IUIElement | The IUIElement being painted. |
hasDownArrow | Boolean | Whether the button has a down arrow; otherwise, an up arrow. |
DrawMenuSeparator(PaintEventArgs, Rectangle, Orientation)
Draws a menu separator.
void DrawMenuSeparator(PaintEventArgs e, Rectangle bounds, Orientation orientation)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
orientation | Orientation | The Orientation of the separator. |
DrawPopupButtonLink(PaintEventArgs, Rectangle, BarPopupButtonLink)
Draws a BarPopupButtonLink.
void DrawPopupButtonLink(PaintEventArgs e, Rectangle bounds, BarPopupButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarPopupButtonLink | The BarPopupButtonLink being painted. |
DrawSplitButtonLink(PaintEventArgs, Rectangle, BarSplitButtonLink)
Draws a BarSplitButtonLink.
void DrawSplitButtonLink(PaintEventArgs e, Rectangle bounds, BarSplitButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarSplitButtonLink | The BarSplitButtonLink being painted. |
DrawSystemButtonLink(PaintEventArgs, Rectangle, BarButtonLink)
Draws a system button link.
void DrawSystemButtonLink(PaintEventArgs e, Rectangle bounds, BarButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarButtonLink | The BarButtonLink being painted. |
DrawSystemPopupButtonLink(PaintEventArgs, Rectangle, BarPopupButtonLink)
Draws a system popup button link.
void DrawSystemPopupButtonLink(PaintEventArgs e, Rectangle bounds, BarPopupButtonLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarPopupButtonLink | The BarPopupButtonLink being painted. |
DrawTextBoxLink(PaintEventArgs, Rectangle, BarTextBoxLink)
Draws a BarTextBoxLink.
void DrawTextBoxLink(PaintEventArgs e, Rectangle bounds, BarTextBoxLink link)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
link | BarTextBoxLink | The BarTextBoxLink being painted. |
DrawToolBarBackground(PaintEventArgs, Rectangle, ToolBar)
Draws the background of a toolbar.
void DrawToolBarBackground(PaintEventArgs e, Rectangle bounds, ToolBar toolBar)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
toolBar | ToolBar | The ToolBar being painted. |
DrawToolBarSeparator(PaintEventArgs, Rectangle, Orientation)
Draws a toolbar separator.
void DrawToolBarSeparator(PaintEventArgs e, Rectangle bounds, Orientation orientation)
Parameter | Type | Description |
---|---|---|
e | PaintEventArgs | A PaintEventArgs that contains the event data. |
bounds | Rectangle | The bounds in which to draw. |
orientation | Orientation | The Orientation of the separator. |
MeasureCommandLink(Graphics, BarCommandLink)
Measures the specified BarCommandLink.
Size MeasureCommandLink(Graphics g, BarCommandLink link)
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
link | BarCommandLink | The BarCommandLink that is being measured. |
Returns
MeasureDockableToolBarFloatingTitleBarHeight(Graphics, DockableToolBar)
Measures the floating title bar height of the specified DockableToolBar.
int MeasureDockableToolBarFloatingTitleBarHeight(Graphics g, DockableToolBar toolBar)
Parameter | Type | Description |
---|---|---|
g | Graphics | The |
toolBar | DockableToolBar | The ToolBar whose floating title bar is being measured. |
Returns
- Int32:
The height of the title bar.