ToolBarButton Class

The ToolBarButton class that raises the Click event.
Public Class ToolBarButton 
Inherits DisposableBase
This language is not supported or no code example is available.
public class ToolBarButton : DisposableBase
This language is not supported or no code example is available.
Name Description
Public property DisabledDownImage Obsolete. Gets or sets the Image for the disabled down state.
Public property DisabledImage Obsolete. Deprecated property. Gets or sets the Image for the disabled state.
Public property Disposed (inherited from DisposableBase).
Public property DownImage Gets or sets the down state button image.
Public property Enabled Gets or sets the button status.
Public property HoverImage Gets or sets the mouse hover state button image.
Public property Image Gets or sets the button image.
Public property Name Gets or sets the name of the ToolBarButton.
Public property Pushed Gets or sets a value indicating whether a toggle-style toolbar button is currently in the pushed state.
Public property StyleMode Gets or sets the style of the toolbar button (DropDownButton is not supported).
Public property Tag Gets or sets the toolbar button custom data.
Public property ToolTipText Gets or sets the text to show on the ToolTip.
Public property Visible Gets or sets the visibility status.
Top
Methods
 
Name Description
Public method Contains(Point) Tells if a point in screen coordinates is inside the button.
Internal protected (Protected Friend) method CreateTextures(RenderContextBase, Environment, GraphicsPath, GraphicsPath, int, int, int, int, Color)
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected method DrawImage(Graphics, Environment, int, int, int, int) Draws the button image.
Protected method DrawImage(Graphics, Image, int, int, int, int)
Protected method DrawImage(Graphics, ImageSource, int, int, int, int)
Public method Static Equals(ToolBarButton, ToolBarButton)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode Serves as the default hash function. (inherited from Object).
Public method GetType Gets the Type of the current instance. (inherited from Object).
Internal protected (Protected Friend) method IsDefaultButton()
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Internal protected (Protected Friend) method ObservableCollectionPropertyChanged(object, NotifyCollectionChangedEventArgs) For internal use only. (inherited from DisposableBase).
Protected method RaisePropertyChangedEvent(object, DependencyProperty) For internal use only. (inherited from DisposableBase).
Public method ToString Returns a string that represents the current object. (inherited from Object).
Top
Name Description
Operator Static Equality
Operator Static Inequality
Top
Events
 
Name Description
Public event Click Occurs when the button is clicked.
Public event PropertyChanged For internal use only. (inherited from DisposableBase).
Top
Name Description
Public delegate ClickEventHandler Represents the method that will handle the ToolBarButton.Click event.
Top
Name Description
Public enumeration styleType Specifies the button style type within a ToolBarButton.
Top
Fields
 
Name Description
Public field Static PropertyChangedEvent For internal use only. (inherited from DisposableBase).
Top

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition