Represents a bar button command.
- Inheritance:
-
object
Command
Bar
Command object
- Implements:
-
IImage
List IBarProvider Checkable Command
Constructors
BarButtonCommand(string, string, string, int)
Initializes a new instance of the BarButtonCommand
class.
Parameter | Type | Description |
---|---|---|
category | string | The category of the bar command. |
name | string | The name of the bar command. |
text | string | The text caption. |
imageIndex | int | The index of an image within an |
BarButtonCommand(string, string, string, int, bool, bool, bool)
Initializes a new instance of the BarButtonCommand
class.
Parameter | Type | Description |
---|---|---|
category | string | The category of the bar command. |
name | string | The name of the bar command. |
text | string | The text caption. |
imageIndex | int | The index of an image within an |
enabled | bool | Whether the button is enabled. |
checkable | bool | Whether the button is checkable. |
isChecked | bool | Whether the button is currently checked. |
Properties
CheckGroupName
Gets or sets the name of the check group.
Property Value
- string:
The name of the check group.
Checkable
Gets or sets whether the button is checkable.
Property Value
- bool:
true
if the button is checkable; otherwise,false
.
Checked
Gets or sets whether the button is checked.
Property Value
- bool:
true
if the button is checked; otherwise,false
.
Methods
CloneToType(Type)
Creates a copy of the Bar
Parameter | Type | Description |
---|---|---|
targetType | Type | The target Type. |
Returns
- Bar
Command : The copy of the Bar
Command .
CreateCommandLink()
Creates a new Bar
Returns
- Bar
Command :Link The Bar
Command that was created.Link
OnClick(BarCommandLinkEventArgs)
Raises the Click
event.
Parameter | Type | Description |
---|---|---|
e | Bar |
A |
RaiseClickEvent(BarCommandLinkEventArgs)
Raises the Click
event.
Parameter | Type | Description |
---|---|---|
e | Bar |
A |
ReadAttributesFromXml(BarLayoutXmlSerializer)
Deserializes the attribute data for the Bar
Parameter | Type | Description |
---|---|---|
serializer | Bar |
The Bar |
ResetCanCustomizeKeyboardShortcuts()
Resets the Can
ResetCheckGroupName()
Resets the Check
ResetCheckable()
Resets the Checkable property to its default value.
ResetChecked()
Resets the Checked property to its default value.
ShouldSerializeCanCustomizeKeyboardShortcuts()
Indicates whether the Can
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeCheckGroupName()
Indicates whether the Check
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeCheckable()
Indicates whether the Checkable property should be persisted.
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
ShouldSerializeChecked()
Indicates whether the Checked property should be persisted.
Returns
- bool:
true
if the property value has changed from its default; otherwise,false
.
WriteAttributesToXml(BarLayoutXmlSerializer)
Serializes the attribute data for the Bar
Parameter | Type | Description |
---|---|---|
serializer | Bar |
The Bar |
Events
Click
Occurs when a Bar
Event Type
Inherited Members
-
Bar
Command. Reset Can Customize Create() -
Bar
Command. Should Serialize Can Customize Create() -
Bar
Command. Reset Category() -
Bar
Command. Should Serialize Category() -
Bar
Command. Reset Customize List Text() -
Bar
Command. Should Serialize Customize List Text() -
Bar
Command. Reset Enabled() -
Bar
Command. Should Serialize Enabled() -
Bar
Command. Reset Image() -
Bar
Command. Should Serialize Image() -
Bar
Command. Reset Image Index() -
Bar
Command. Should Serialize Image Index() -
Bar
Command. On Enabled Changed(Event Args) -
Bar
Command. On Processing Requested(Bar Process Event Args) -
Bar
Command. Process(Bar Process Event Args) -
Bar
Command. Read Element From Xml(Bar Layout Xml Serializer) -
Bar
Command. Reset Stays Open On Click() -
Bar
Command. Should Serialize Stays Open On Click() -
Bar
Command. Reset Text() -
Bar
Command. Should Serialize Text() -
Bar
Command. Reset Tool Tip Enabled() -
Bar
Command. Should Serialize Tool Tip Enabled() -
Bar
Command. Reset Tool Tip Text() -
Bar
Command. Should Serialize Tool Tip Text() -
Bar
Command. Update State(Bar Command Link Event Args) -
Bar
Command. Write Elements To Xml(Bar Layout Xml Serializer) -
Bar
Command. Bar Manager -
Bar
Command. Can Customize Create -
Bar
Command. Can Customize Keyboard Shortcuts -
Bar
Command. Category -
Bar
Command. Customize List Text -
Bar
Command. Enabled -
Bar
Command. Full Name -
Bar
Command. Image -
Bar
Command. Image Index -
Bar
Command. Keyboard Shortcuts -
Bar
Command. Stays Open On Click -
Bar
Command. Supports Vertical Display -
Bar
Command. Tag -
Bar
Command. Text -
Bar
Command. Tool Tip Enabled -
Bar
Command. Tool Tip Text -
Bar
Command. Enabled Changed -
Bar
Command. Processing Requested -
Command.
Name -
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()