MenuButton Class

Describes a menu button.

Definition

Namespace: SMath.Controls
Assembly: SMath.Controls (in SMath.Controls.dll) Version: 1.73.9126.0
C#
public class MenuButton
Inheritance
Object    MenuButton

Constructors

MenuButton(MenuButton) Constructs a copy of the specified MenuButton.
MenuButton(String) Constructs a new instance of MenuButton with the specified text.
MenuButton(String, ButtonAction) Constructs a new instance of MenuButton with the specified text and action.

Properties

Action Action handler which is invoked when the menu button is clicked.
Behavior Behavior flags for the menu button.
Checked Specifies whether the menu button is checked.
Children Child menu buttons.
Data Custom data for the button.
Enabled Specifies whether the menu button is enabled.
Icon Icon for the menu button.
Index Sort index of the menu button.
Location Location of the menu button in MainMenu.
Name Internal name of the menu button.
OpenFileFilter Unless this property is null or Empty, a File Open dialog is shown and the value of DialogPath is set to the path selected by the user prior to calling Action.
SaveFileFilter Unless this property is null or Empty, a File Save dialog is shown and the value of DialogPath is set to the path selected by the user prior to calling Action.
ShortcutKey A shortcut key for the menu button.
ShortcutKeyDisplayString Display text for ShortcutKey.
Text Text of the menu button.
Visible Specifies whether the menu button is visible.

Methods

AppendChild(MenuButton) Appends the specified MenuButton to Children.
AppendChild(String, ButtonAction) Appends a new MenuButton with the specified values of Text and Action to Children.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also