BarTextBoxCommand Class
Represents a bar textbox command.
public class BarTextBoxCommand : BarCustomControlCommand, IImageListProvider
- Inheritance:
- Object Command BarCommand BarCustomControlCommand Object
- Implements:
- IImageListProvider
Constructors
BarTextBoxCommand(String, String, String, Int32)
Initializes a new instance of the BarTextBoxCommand
class.
public BarTextBoxCommand(string category, string name, string text, int imageIndex)
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 | Int32 | The index of an image within an |
Methods
CreateCommandLink()
Creates a new BarCommandLink for the command.
public override BarCommandLink CreateCommandLink()
Returns
- BarCommandLink:
The BarCommandLink that was created.
OnClick(BarCommandLinkEventArgs)
Raises the Click
event.
protected virtual void OnClick(BarCommandLinkEventArgs e)
Parameter | Type | Description |
---|---|---|
e | BarCommandLinkEventArgs | A |
RaiseClickEvent(BarCommandLinkEventArgs)
Raises the Click
event.
public void RaiseClickEvent(BarCommandLinkEventArgs e)
Parameter | Type | Description |
---|---|---|
e | BarCommandLinkEventArgs | A |
ResetCanCustomizeKeyboardShortcuts()
Resets the CanCustomizeKeyboardShortcuts property to its default value.
public override void ResetCanCustomizeKeyboardShortcuts()
ShouldSerializeCanCustomizeKeyboardShortcuts()
Indicates whether the CanCustomizeKeyboardShortcuts property should be persisted.
public override bool ShouldSerializeCanCustomizeKeyboardShortcuts()
Returns
- Boolean:
true
if the property value has changed from its default; otherwise,false
.
Events
Click
Occurs when a BarCommand is clicked.
Inherited Members
- BarCustomControlCommand.CloneToType(Type)
- BarCustomControlCommand.ResetControlValue()
- BarCustomControlCommand.ShouldSerializeControlValue()
- BarCustomControlCommand.ReadAttributesFromXml(BarLayoutXmlSerializer)
- BarCustomControlCommand.ResetTextVisibleOnToolBars()
- BarCustomControlCommand.ShouldSerializeTextVisibleOnToolBars()
- BarCustomControlCommand.ResetWidth()
- BarCustomControlCommand.ShouldSerializeWidth()
- BarCustomControlCommand.WriteAttributesToXml(BarLayoutXmlSerializer)
- BarCustomControlCommand.ControlValue
- BarCustomControlCommand.SupportsVerticalDisplay
- BarCustomControlCommand.Width
- BarCustomControlCommand.ControlValueChanged
- BarCommand.IImageListProvider.GetImageList(Object, Object)
- BarCommand.ResetCanCustomizeCreate()
- BarCommand.ShouldSerializeCanCustomizeCreate()
- BarCommand.ResetCategory()
- BarCommand.ShouldSerializeCategory()
- BarCommand.ResetCustomizeListText()
- BarCommand.ShouldSerializeCustomizeListText()
- BarCommand.ResetEnabled()
- BarCommand.ShouldSerializeEnabled()
- BarCommand.ResetImage()
- BarCommand.ShouldSerializeImage()
- BarCommand.ResetImageIndex()
- BarCommand.ShouldSerializeImageIndex()
- BarCommand.OnEnabledChanged(EventArgs)
- BarCommand.OnProcessingRequested(BarProcessEventArgs)
- BarCommand.Process(BarProcessEventArgs)
- BarCommand.ReadElementFromXml(BarLayoutXmlSerializer)
- BarCommand.ResetStaysOpenOnClick()
- BarCommand.ShouldSerializeStaysOpenOnClick()
- BarCommand.ResetText()
- BarCommand.ShouldSerializeText()
- BarCommand.ResetToolTipEnabled()
- BarCommand.ShouldSerializeToolTipEnabled()
- BarCommand.ResetToolTipText()
- BarCommand.ShouldSerializeToolTipText()
- BarCommand.UpdateState(BarCommandLinkEventArgs)
- BarCommand.WriteElementsToXml(BarLayoutXmlSerializer)
- BarCommand.BarManager
- BarCommand.CanCustomizeCreate
- BarCommand.CanCustomizeKeyboardShortcuts
- BarCommand.Category
- BarCommand.CustomizeListText
- BarCommand.Enabled
- BarCommand.FullName
- BarCommand.Image
- BarCommand.ImageIndex
- BarCommand.KeyboardShortcuts
- BarCommand.StaysOpenOnClick
- BarCommand.Tag
- BarCommand.Text
- BarCommand.ToolTipEnabled
- BarCommand.ToolTipText
- BarCommand.EnabledChanged
- BarCommand.ProcessingRequested
- Command.Name
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()