[]
        
(Showing Draft Content)

C1.Win.Command.C1ToolBar

C1ToolBar Class

A themeable control that contains one or more buttons.

Inheritance
C1ToolBar
Namespace: C1.Win.Command
Assembly: C1.Win.Command.8.dll
Syntax
[ToolboxBitmap(typeof(C1ToolBar), "C1ToolBar.png")]
[C1Description("C1ToolBar", "Creates a default or drop-down style toolbar with one or more buttons.")]
public class C1ToolBar : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportSuperTooltip

Constructors

Name Description
C1ToolBar()

Initializes a new instance of the C1ToolBar class.

Properties

Name Description
AutoSize

Gets or sets the value indicating whether the toolbar automatically adjusts it size to fit all items.

BackColor

Gets or sets the background color for the control.

BackHiColor

Gets or sets the background color of the highlighted item.

BackImageInImageBar

Gets or sets the value indicating whether to show background image in the image bar of dropdown menus.

Border

Gets or sets the appearance of the toolbar’s border.

ButtonAlign

Gets or sets the button alignment for vertical toolbars.

ButtonLayoutCurrent

Gets the current layout of the buttons.

ButtonLayoutHorz

Gets or sets the layout of the buttons when the toolbar is horizontal.

ButtonLayoutVert

Gets or sets the layout of the buttons when the toolbar is vertical.

ButtonLookCurrent

Gets the default look of the buttons in the current toolbar orientation.

ButtonLookEnforceCurrent

Gets the value indicating whether to force all buttons to comply with ButtonLookCurrent.

ButtonLookEnforceHorz

Gets or sets the value indicating whether to force all buttons to comply with ButtonLookHorz.

ButtonLookEnforceVert

Gets or sets the value indicating whether to force all buttons to comply with ButtonLookVert.

ButtonLookHorz

Gets or sets the default look of the buttons when the toolbar is horizontal.

ButtonLookVert

Gets or sets the default look of the buttons when the toolbar is vertical.

ButtonWidth

Gets or sets the width for all buttons (applies to horizontal toolbars only; if 0, buttons are individually sized).

CloseMoreOnItemClick

Gets or sets the value indicating whether the menu that is automatically created when some items do not fit on the toolbar closes when an item on that menu is clicked.

Gets the collection of commandlinks.

CustomizeButton

Gets or sets the visibility of customize button.

CustomizeMode

Indicates whether the toolbar is in customize mode.

CustomizeOptions

Gets or sets the value indicating what can be customized in this toolbar.

Floating

Indicates whether the toolbar is floating.

Font

Gets or sets the font of the text displayed by the control.

ForeHiColor

Gets or sets the text color of the highlighted item.

HideFirstDelimiter

Gets or sets a value indicating whether the control should hide the first delimiter.

Horizontal

Gets or sets the orientation of the toolbar.

MinButtonSize

Gets or sets the minimum size (width and height) of button in toolbar.

Movable

Gets or sets the value indicating whether the toolbar can be moved by the user.

ShowToolTips

Gets or sets the value indicating whether to show tooltip texts when mouse cursor is over toolbutton.

SuperTooltip
ToolBarStyle

Gets or sets the style of the toolbar.

Wrap

Gets or sets the value indicating whether to wrap the toolbar or show a "More..." button if not all items fit on a single line.

WrapText

Gets or sets the value indicating whether to wrap text in links when ButtonWidth is greater than zero and text doesn't fit.

Methods

Name Description
CreateAccessibilityInstance()
Dispose(bool)

Releases the resources used by the C1ToolBar.

InitLayout()

This method is for internal use only.

OnBackColorChanged(EventArgs)

This method is for internal use only.

OnBackHiColorChanged(EventArgs)

This method is for internal use only.

OnBackgroundImageChanged(EventArgs)

This method is for internal use only.

OnBackgroundImageLayoutChanged(EventArgs)

This method is for internal use only.

OnBorderChanged(EventArgs)

This method is for internal use only.

OnButtonAlignChanged(EventArgs)

This method is for internal use only.

OnButtonLayoutHorzChanged(EventArgs)

This method is for internal use only.

OnButtonLayoutVertChanged(EventArgs)

This method is for internal use only.

OnButtonLookEnforceHorzChanged(EventArgs)

This method is for internal use only.

OnButtonLookEnforceVertChanged(EventArgs)

This method is for internal use only.

OnButtonLookHorzChanged(EventArgs)

This method is for internal use only.

OnButtonLookVertChanged(EventArgs)

This method is for internal use only.

OnButtonWidthChanged(EventArgs)

This method is for internal use only.

OnControlAdded(ControlEventArgs)

This method is for internal use only.

OnControlRemoved(ControlEventArgs)

This method is for internal use only.

OnCursorChanged(EventArgs)

This method is for internal use only.

OnCustomizeButtonChanged(EventArgs)

This method is for internal use only.

OnDockChanged(EventArgs)

This method is for internal use only.

OnDrawFloatingCaption(DrawFloatingCaptionEventArgs)

This method is for internal use only.

OnFontChanged(EventArgs)

This method is for internal use only.

OnForeColorChanged(EventArgs)

This method is for internal use only.

OnForeHiColorChanged(EventArgs)

This method is for internal use only.

OnHorizontalChanged(EventArgs)

This method is for internal use only.

OnLayout(LayoutEventArgs)

This method is for internal use only.

OnLocationChanged(EventArgs)

This method is for internal use only.

OnMeasureFloatingCaption(MeasureFloatingCaptionEventArgs)

This method is for internal use only.

OnMinButtonSizeChanged(EventArgs)

This method is for internal use only.

OnMouseDown(MouseEventArgs)

This method is for internal use only.

OnMouseEnter(EventArgs)

This method is for internal use only.

OnMouseHover(EventArgs)

This method is for internal use only.

OnMouseLeave(EventArgs)

This method is for internal use only.

OnMouseMove(MouseEventArgs)

This method is for internal use only.

OnMouseUp(MouseEventArgs)

This method is for internal use only.

OnMouseWheel(MouseEventArgs)

This method is for internal use only.

OnPaint(PaintEventArgs)

This method is for internal use only.

OnParentChanged(EventArgs)

This method is for internal use only.

OnParentCursorChanged(EventArgs)

This method is for internal use only.

OnReset(EventArgs)

This method is for internal use only.

OnRightToLeftChanged(EventArgs)

This method is for internal use only.

OnShowToolTipsChanged(EventArgs)

This method is for internal use only.

OnSystemColorsChanged(EventArgs)

This method is for internal use only.

OnTextChanged(EventArgs)

This method is for internal use only.

OnToolBarStyleChanged(EventArgs)

This method is for internal use only.

OnWrapChanged(EventArgs)

This method is for internal use only.

OnWrapTextChanged(EventArgs)

This method is for internal use only.

ResetBackColor()

Resets the BackColor property to its default value.

ResetBackHiColor()

This method is for internal use only.

ResetBorder()

This method is for internal use only.

ResetFont()

Resets the Font property to its default value.

ResetForeHiColor()

This method is for internal use only.

ResetMovable()

Restore the Movable property to its default value.

SetVisibleCore(bool)

This method is for internal use only.

ShouldSerializeBackColor()

This method is for internal use only.

ShouldSerializeBackHiColor()

This method is for internal use only.

ShouldSerializeBorder()

This method is for internal use only.

ShouldSerializeFont()

This method is for internal use only.

ShouldSerializeForeHiColor()

This method is for internal use only.

ShouldSerializeMovable()

Indicates whether the Movable has a default value.

ShouldSerializeShowToolTips()

Indicates whether the ShowToolTips has a default value.

ShouldSerializeSuperTooltip()

Indicates whether the SuperTooltip has a default value.

Events

Name Description
BackHiColorChanged

Occurs when the value of the BackHiColor property changes.

BorderChanged

Occurs when the value of the Border property changes.

ButtonAlignChanged

Occurs when the value of the ButtonAlign property changes.

ButtonLayoutHorzChanged

Occurs when the value of the ButtonLayoutHors property changes.

ButtonLayoutVertChanged

Occurs when the value of the ButtonLayoutVert property changes.

ButtonLookEnforceHorzChanged

Occurs when the value of the ButtonLookEnforceHors property changes.

ButtonLookEnforceVertChanged

Occurs when the value of the ButtonLookEnforceVert property changes.

ButtonLookHorzChanged

Occurs when the value of the ButtonLookHors property changes.

ButtonLookVertChanged

Occurs when the value of the ButtonLookVert property changes.

ButtonWidthChanged

Occurs when the value of the ButtonWidth property changes.

CurrentLinkChanged

Occurs when the current command link changes.

CustomizeButtonChanged

Occurs when the value of the CustomizeButton property changes.

DrawBar

Occurs when an owner drawn menu or toolbar needs to be drawn.

DrawFloatingCaption

Occurs when a floating toolbar's caption needs to be drawn. Allows to owner draw the caption.

Occurs when an owner drawn link needs to be drawn.

ForeHiColorChanged

Occurs when the value of the ForeHiColor property changes.

HorizontalChanged

Occurs when the value of the Horizontal property changes.

Occurs when an owner drawn link needs to layout its text, image and control within the link bounds.

MeasureFloatingCaption

Occurs when a floating toolbar's caption needs to be measured. Allows to customize the toolbar's size.

Occurs when an owner drawn link needs to be measured.

MinButtonSizeChanged

Occurs when the value of the MinButtonSize property changes.

Reset

Event fired when Reset command from Customize dialog is clicked.

ShowToolTipsChanged

Occurs when the value of the ShowToolTips property changes.

ToolBarStyleChanged

Occurs when the value of the ToolBarStyle property changes.

WrapChanged

Occurs when the value of the Wrap property changes.

WrapTextChanged

Occurs when the value of the WrapText property changes.