NetXP 3.0 Reference

CommandBar Members

CommandBar overview

Public Instance Constructors

CommandBar Constructor Creates a command bar.

Public Instance Properties

AccessibilityObject (inherited from Control)Gets the AccessibleObject assigned to the control.
AccessibleDefaultActionDescription (inherited from Control)Gets or sets the default action description of the control for use by accessibility client applications.
AccessibleDescription (inherited from Control)Gets or sets the description of the control used by accessibility client applications.
AccessibleName (inherited from Control)Gets or sets the name of the control used by accessibility client applications.
AccessibleRole (inherited from Control)Gets or sets the accessible role of the control
AllowClose Gets or sets if the bar's floating window can be closed by the user.
AllowDrop (inherited from Control) Gets or sets a value indicating whether the control can accept data that the user drags onto it.
AllowTearOff Gets or sets if the bar can be torn off by the user.
Anchor (inherited from Control)Gets or sets which edges of the control are anchored to the edges of its container.
AutoFocus Gets or sets if the bar can be automatically focused if the user clicks on it.
BackColor Gets or sets the background color of this command bar.
BackgroundImage Gets or sets the background image for this command bar.
BindingContext (inherited from Control)Gets or sets the BindingContext for the control.
Bottom (inherited from Control)Gets the distance between the bottom edge of the control and the top edge of its container's client area.
Bounds (inherited from Control)Gets or sets the size and location of the control including its nonclient elements.
CanFocus (inherited from Control)Gets a value indicating whether the control can receive focus.
CanSelect (inherited from Control)Gets a value indicating whether the control can be selected.
Capture (inherited from Control)Gets or sets a value indicating whether the control has captured the mouse.
CausesValidation (inherited from Control)Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
ClickedArrow Gets or sets if the user clicked a drop down arrow.
ClientRectangle (inherited from Control)Gets the rectangle that represents the client area of the control.
ClientSize (inherited from Control)Gets or sets the height and width of the client area of the control.
CompanyName (inherited from Control) Gets the name of the company or creator of the application containing the control.
Container (inherited from Component) Gets the IContainer that contains the Component.
ContainsFocus (inherited from Control)Gets a value indicating whether the control, or one of its child controls, currently has the input focus.
ContextMenu (inherited from Control) Gets or sets the shortcut menu associated with the control.
Controls (inherited from Control) Gets the collection of controls contained within the control.
Created (inherited from Control) Gets a value indicating whether the control has been created.
Cursor (inherited from Control) Gets or sets the cursor that is displayed when the mouse pointer is over the control.
CustomBackground If true, the command bar will not draw its default background. Only available for bars outside of dock containers.
CustomizeText Gets or setst the text of the Customize command.
DataBindings (inherited from Control) Gets the data bindings for the control.
DisplayRectangle (inherited from Control)Gets the rectangle that represents the display area of the control.
Disposing (inherited from Control)Gets a value indicating whether the control is in the process of being disposed of.
Dock (inherited from Control) Gets or sets which edge of the parent container a control is docked to.
Dropped Gets or sets if the command bar's state is Dropped.
EnableCustomize Is the Customize option enabled?
Enabled (inherited from Control) Gets or sets a value indicating whether the control can respond to user interaction.
FloatingForm Gets or sets this bar's floating form.
FloatingLocation Gets the location of the floating form.
Focused (inherited from Control)Gets a value indicating whether the control has input focus.
Font (inherited from Control)Gets or sets the font of the text displayed by the control.
ForeColor (inherited from Control)Gets or sets the foreground color of the control.
FullRow Gets or sets if this bar takes up the whole row.
Handle (inherited from Control) Gets the window handle that the control is bound to.
HasChildren (inherited from Control)Gets a value indicating whether the control contains one or more child controls.
Height (inherited from Control)Gets or sets the height of the control.
ID Gets or sets a unique ID for this command bar.
ImeMode (inherited from Control) Gets or sets the Input Method Editor (IME) mode of the control.
InvokeRequired (inherited from Control) Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.
IsAccessible (inherited from Control) Gets or sets a value indicating whether the control is visible to accessibility applications.
IsDisposed (inherited from Control) Gets a value indicating whether the control has been disposed of.
IsFloating Gets if this bar is floating.
IsHandleCreated (inherited from Control)Gets a value indicating whether the control has a handle associated with it.
Items The collection of toolbar items on the toolbar or menu.
Left (inherited from Control)Gets or sets the x-coordinate of a control's left edge in pixels.
Location (inherited from Control)Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.
Margins Gets the margins (padding) between the command bar's edges and its items.
MdiContainer Gets or sets the MDI container associated with this menu bar.
MenuEnabled If false, the menu will become grayed out (i.e. when the window is deactivated)
Name (inherited from Control)Gets or sets the name of the control.
Parent (inherited from Control)Gets or sets the parent container of the control.
ParentDock Gets or sets the command bar's parent dock when floating.
Position Gets or sets the position of this bar within a row.
ProductName (inherited from Control) Gets the product name of the assembly containing the control.
ProductVersion (inherited from Control) Gets the version of the assembly containing the control.
Pushed Gets or sets if the command bar's state is Pushed.
RecreatingHandle (inherited from Control)Gets a value indicating whether the control is currently re-creating its handle.
Region (inherited from Control) Gets or sets the window region associated with the control.
Renderer Gets or sets the command bar's renderer.
Right (inherited from Control) Gets the distance between the right edge of the control and the left edge of its container.
RightAlignChevronMenu Gets or sets if the chevron menu is right-aligned.
RightToLeft (inherited from Control) Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.
RowNumber Gets or sets the row number where this command bar is placed.
ShowCues Gets if the command bar should show keyboard underlines.
ShowGripper If true, a gripper will be shown, allowing the user to move the command bar.
Site (inherited from Control)Gets or sets the site of the control.
Size (inherited from Control)Gets or sets the height and width of the control.
State Gets this command bar's hot tracking state.
Style The style (can be Menu or Toolbar)
TabIndex (inherited from Control)Gets or sets the tab order of the control within its container.
TabStop (inherited from Control)Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.
Tag (inherited from Control)Gets or sets the object that contains data about the control.
Text Gets or sets the text of the command bar shown in the title bar of the floating form.
Top (inherited from Control)Gets or sets the y-coordinate of the control's top edge in pixels.
TopLevelControl (inherited from Control)Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in.
Vertical Gets if this bar is vertical.
Visible (inherited from Control)Gets or sets a value indicating whether the control is displayed.
Width (inherited from Control) Gets or sets the width of the control.
WindowTarget (inherited from Control) 

Public Instance Methods

BeginInit Begins initialization. Suspends all redraw operations.
BeginInvoke (inherited from Control)Overloaded. Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.
BringToFront (inherited from Control)Brings the control to the front of the z-order.
Contains (inherited from Control)Retrieves a value indicating whether the specified control is a child of the control.
CreateControl (inherited from Control) Forces the creation of the control, including the creation of the handle and any child controls.
CreateGraphics (inherited from Control)Creates the Graphics object for the control.
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Dispose (inherited from Component) Releases all resources used by the Component.
DoDragDrop (inherited from Control) Begins a drag-and-drop operation.
EndInit Ends initialization. Redraws the control.
EndInvoke (inherited from Control) Retrieves the return value of the asynchronous operation represented by the IAsyncResult object passed.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindForm (inherited from Control) Retrieves the form that the control is on.
Float Undocks the command bar from the parent.
Focus (inherited from Control) Sets input focus to the control.
GetChildAtPoint (inherited from Control)Retrieves the child control that is located at the specified coordinates.
GetContainerControl (inherited from Control)Returns the next ContainerControl up the control's chain of parent controls.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetHotItem Gets the current hot item.
GetItemRect Gets the bounds of an item.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetNextControl (inherited from Control)Retrieves the next control forward or back in the tab order of child controls.
GetNumRects Gets the number of item rectangles.
GetType (inherited from Object)Gets the Type of the current instance.
Hide (inherited from Control) Conceals the control from the user.
HideBar Hides this command bar. Use this method instead of just setting the Visible property.
HitTest Performs a hit test for an item.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
Invalidate (inherited from Control)Overloaded. Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.
Invoke (inherited from Control)Overloaded. Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.
PerformLayout (inherited from Control)Overloaded. Forces the control to apply layout logic to all its child controls.
PointToClient (inherited from Control)Computes the location of the specified screen point into client coordinates.
PointToScreen (inherited from Control)Computes the location of the specified client point into screen coordinates.
PreFilterMessage Internal
PreProcessMessage Processes messages received from Windows.
RectangleToClient (inherited from Control)Computes the size and location of the specified screen rectangle in client coordinates.
RectangleToScreen (inherited from Control)Computes the size and location of the specified client rectangle in screen coordinates.
Refresh (inherited from Control)Forces the control to invalidate its client area and immediately redraw itself and any child controls.
ResetBackColor (inherited from Control)Resets the BackColor property to its default value.
ResetBindings (inherited from Control)Resets the DataBindings property to its default value.
ResetCursor (inherited from Control)Resets the Cursor property to its default value.
ResetFont (inherited from Control)Resets the Fontproperty to its default value.
ResetForeColor (inherited from Control)Resets the ForeColor property to its default value.
ResetImeMode (inherited from Control)Resets the ImeMode property to its default value.
ResetRightToLeft (inherited from Control)Resets the RightToLeft property to its default value.
ResetText (inherited from Control)Resets the Text property to its default value.
ResumeLayout (inherited from Control)Overloaded. Resumes normal layout logic.
Scale (inherited from Control)Overloaded. Scales the control and any child controls to the specified ratio.
Select (inherited from Control)Activates the control.
SelectNextControl (inherited from Control) Activates the next control.
SendToBack (inherited from Control)Sends the control to the back of the z-order.
SetBounds (inherited from Control)Overloaded. Sets the bounds of the control to the specified location and size.
SetHotItem Assigns a new hot item.
Show (inherited from Control) Displays the control to the user.
ShowBar Shows this command bar. Use this method instead of just setting the Visible property.
SuspendLayout (inherited from Control)Temporarily suspends the layout logic for the control.
ToString (inherited from Component) 
Update (inherited from Control) Causes the control to redraw the invalidated regions within its client area.
UpdateItems Redraws items and resizes the control.
UpdateSize Updates the size of the command bar control. This causes the control to have the most compact size possible, depending on the items it is displaying.

Public Instance Events

BackColorChanged (inherited from Control)Occurs when the value of the BackColor property changes.
BackgroundImageChanged (inherited from Control)Occurs when the value of the BackgroundImage property changes.
BindingContextChanged (inherited from Control)Occurs when the value of the BindingContext property changes.
CausesValidationChanged (inherited from Control)Occurs when the value of the CausesValidation property changes.
ChangeUICues (inherited from Control) Occurs when the focus or keyboard user interface (UI) cues change.
Click (inherited from Control)Occurs when the control is clicked.
ContextMenuChanged (inherited from Control)Occurs when the value of the ContextMenu property changes.
ControlAdded (inherited from Control)Occurs when a new control is added to the ControlCollection .
ControlRemoved (inherited from Control)Occurs when a control is removed from the ControlCollection .
CursorChanged (inherited from Control)Occurs when the value of the Cursor property changes.
Customize Raised when the Cutomize Toolbar menu item has been clicked.
Disposed (inherited from Component)Adds an event handler to listen to the Disposed event on the component.
DockChanged (inherited from Control)Occurs when the value of the Dock property changes.
DoubleClick (inherited from Control) Occurs when the control is double-clicked.
DragDrop (inherited from Control)Occurs when a drag-and-drop operation is completed.
DragEnter (inherited from Control)Occurs when an object is dragged into the control's bounds.
DragLeave (inherited from Control) Occurs when an object is dragged out of the control's bounds.
DragOver (inherited from Control) Occurs when an object is dragged over the control's bounds.
EnabledChanged (inherited from Control)Occurs when the Enabled property value has changed.
Enter (inherited from Control)Occurs when the control is entered.
FontChanged (inherited from Control)Occurs when the Font property value changes.
ForeColorChanged (inherited from Control)Occurs when the ForeColor property value changes.
GiveFeedback (inherited from Control)Occurs during a drag operation.
GotFocus (inherited from Control)Occurs when the control receives focus.
HandleCreated (inherited from Control)Occurs when a handle is created for the control.
HandleDestroyed (inherited from Control)Occurs when the control's handle is in the process of being destroyed.
HelpRequested (inherited from Control)Occurs when the user requests help for a control.
ImeModeChanged (inherited from Control)Occurs when the ImeMode property has changed.
Invalidated (inherited from Control)Occurs when a control's display requires redrawing.
KeyDown (inherited from Control) Occurs when a key is pressed while the control has focus.
KeyPress (inherited from Control) Occurs when a key is pressed while the control has focus.
KeyUp (inherited from Control) Occurs when a key is released while the control has focus.
Layout (inherited from Control)Occurs when a control should reposition its child controls.
Leave (inherited from Control)Occurs when the input focus leaves the control.
LocationChanged (inherited from Control)Occurs when the Location property value has changed.
LostFocus (inherited from Control)Occurs when the control loses focus.
MouseDown (inherited from Control)Occurs when the mouse pointer is over the control and a mouse button is pressed.
MouseEnter (inherited from Control) Occurs when the mouse pointer enters the control.
MouseHover (inherited from Control) Occurs when the mouse pointer hovers over the control.
MouseLeave (inherited from Control) Occurs when the mouse pointer leaves the control.
MouseMove (inherited from Control) Occurs when the mouse pointer is moved over the control.
MouseUp (inherited from Control)Occurs when the mouse pointer is over the control and a mouse button is released.
MouseWheel (inherited from Control) Occurs when the mouse wheel moves while the control has focus.
Move (inherited from Control)Occurs when the control is moved.
Paint (inherited from Control) Occurs when the control is redrawn.
ParentChanged (inherited from Control)Occurs when the Parent property value changes.
QueryAccessibilityHelp (inherited from Control) Occurs when AccessibleObject is providing help to accessibility applications.
QueryContinueDrag (inherited from Control)Occurs during a drag-and-drop operation and allows the drag source to determine whether the drag-and-drop operation should be canceled.
Resize (inherited from Control)Occurs when the control is resized.
RightToLeftChanged (inherited from Control)Occurs when the RightToLeft property value changes.
SetupChevronMenu Handle this event if you wish to customize the expansion item menu.
ShowGripperChanged Raised when the command bar has been locked or unlocked.
SizeChanged (inherited from Control)Occurs when the Size property value changes.
SnappedOn Raised when the command bar has been snapped back on (redocked).
StyleChanged (inherited from Control)Occurs when the control style changes.
SystemColorsChanged (inherited from Control) Occurs when the system colors change.
TabIndexChanged (inherited from Control)Occurs when the TabIndex property value changes.
TabStopChanged (inherited from Control)Occurs when the TabStop property value changes.
TextChanged (inherited from Control)Occurs when the Text property value changes.
TornOff Raised when the command bar has been torn off (undocked).
Validated (inherited from Control)Occurs when the control is finished validating.
Validating (inherited from Control)Occurs when the control is validating.
VisibleChanged (inherited from Control)Occurs when the Visible property value changes.

See Also

CommandBar Class | NETXP.Controls.Bars Namespace