Skip to main content
Bar

BarButtonItem Methods

A button command in the Ribbon UI, toolbar, or popup menu.
Name Description
BeginUpdate() Locks the BarItem object by preventing visual updates until the EndUpdate method is called. Inherited from BarItem.
BindCommand(Expression<Action>, Object, Func<Object>) Uses the command selector to find an appropriate parameterized command in the source and bind it to this BarButtonItem.
BindCommand(Object, Func<Object>) Binds the specific parameterized command to this BarButtonItem.
BindCommand<T>(Expression<Action<T>>, Object, Func<T>) Uses the command selector to find an appropriate parameterized command of the target type in the source and bind it to this BarButtonItem.
CancelUpdate() Unlocks the object after it has been locked by the BarItem.BeginUpdate method, without causing an immediate visual update. Inherited from BarItem.
ContainsItem(BarItem) Indicates whether the item contains the item specified. Inherited from BarItem.
CreateObjRef(Type) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. Inherited from MarshalByRefObject.
Dispose() Releases all resources used by the Component. Inherited from Component.
EndUpdate() Unlocks the BarItem object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from BarItem.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetBarLinkInfoProvider() This member supports the internal infrastructure, and is not intended to be used directly from your code. Inherited from BarItem.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetLifetimeService() Retrieves the current lifetime service object that controls the lifetime policy for this instance. Inherited from MarshalByRefObject.
GetService(Type) protected Returns an object that represents a service provided by the Component or by its Container. Inherited from Component.
GetType() Gets the Type of the current instance. Inherited from Object.
GetVisibleLinks() Returns the list of all currently visible links to this BarItem. Inherited from BarItem.
InitializeLifetimeService() Obtains a lifetime service object to control the lifetime policy for this instance. Inherited from MarshalByRefObject.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
MemberwiseClone(Boolean) protected Creates a shallow copy of the current MarshalByRefObject object. Inherited from MarshalByRefObject.
PerformClick() Fires the ItemClick events for the current bar item. Inherited from BarItem.
PerformClick(BarItemLink) Fires the ItemClick events for the current bar item and its link. Inherited from BarItem.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Refresh() Forces the controls that contain the bar item’s links to invalidate their client area. Inherited from BarItem.
Reset() Resets the current BarItem to the original state. Inherited from BarItem.
ResetDropDownSuperTip() Clears the SuperTip that has been assigned to the BarItem.DropDownSuperTip property. Inherited from BarItem.
ResetSuperTip() Removes the SuperToolTip object that has been assigned to the current bar item. Inherited from BarItem.
Toggle() Toggles the button item’s state. Inherited from BarBaseButtonItem.
Toggle(BarItemLink) Toggles the button item’s (link’s) state. Inherited from BarBaseButtonItem.
ToString() Returns this BarItem‘s caption (the BarItem.Caption property value). Inherited from BarItem.
UpdateBindings(BindingContext) Updates data bindings used by this BarItem. Inherited from BarItem.
See Also