This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ToolBarButton Members
Public:
Constructor
Properties
DropDownMenu |
If the button style is DropDownButton, you can, optionally, specify a context menu that is shown whenever the dropdown button is pressed. This property lets you control just which menu is shown. Note that this will ONLY be shown if the button style is DropDownButton |
Enabled |
Indicates if the button is enabled or not. Disabled buttons are grayed out. |
ImageIndex |
Returns the index of the image that this ToolBarButton is using. The index comes from the parent ToolBar's ImageList |
ItemData |
Retrieves the data currently associated with this button. This can be whatever the user wants. NOTE: When Using the Microsoft WinForms IDE, only Strings may be entered using the property browser. Outside the IDE, any Object derived type may, of course, be used. |
PartialPush |
Indicates whether or not a toggle-styled button is partially pushed or not. If button is not a ToggleButton, this property is ignored. |
Pushed |
Indicates whether a toggle-styled button should be marked as pushed or not. The "pushed" state makes the button inset relative to the others. This is ignored for all other button styles. |
Rectangle |
If we are parented and the parent is shown, then this returns the rectangle that this button is currently inhabiting. |
Site (inherited from Component) |
Gets or sets the site of the Component. |
Style |
Returns the style of the ToolBar button. This will from the ToolBarButtonStyle enumeration. |
Text |
The caption that will be displayed in this ToolBar button. |
ToolTipText |
If the parent ToolBar has the ShowToolTips property turned on, then this property describes the text that will be displayed for this button |
Visible |
Indicates whether the button is visible or not. If the button is not visible, it will not be shown and will be unable to receive user input |
Methods
Dispose |
[To be supplied.] |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetContainer (inherited from Component) |
Returns the IContainer that contains the Component. |
GetDesignMode (inherited from Component) |
Gets a value indicating whether the Component is currently in design mode. |
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. |
GetServiceObject (inherited from Component) |
Returns an object representing a service provided by the Component. |
GetType (inherited from Object) |
Gets the Type of the Object. |
ToString (inherited from Component) |
Returns a String containing the name of the Component, if any. This method should not be overridden. For internal use only. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
ToolBarButton Class | System.WinForms Namespace