In This Article

BarTextBoxCommand Class

Represents a bar textbox command.

public class BarTextBoxCommand : BarCustomControlCommand, IImageListProvider, IBarClickableCommand
Inheritance:
object Command BarCommand BarCustomControlCommand object
Implements:
IImageListProvider IBarClickableCommand

Constructors

BarTextBoxCommand(string, string, string?, int)

Initializes an instance of the class.

public BarTextBoxCommand(string category, string name, string? text = null, int imageIndex = -1)
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 ImageList.

Methods

Creates a new BarCommandLink for the command.

public override BarCommandLink CreateCommandLink()

Returns

BarCommandLink

OnClick(BarCommandLinkEventArgs)

Raises the Click event.

protected virtual void OnClick(BarCommandLinkEventArgs e)
Parameter Type Description
e BarCommandLinkEventArgs

The event data.

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

bool:

true if the property value has changed from its default; otherwise, false.

Events

Click

Occurs when a BarCommand is clicked.

public event BarCommandLinkEventHandler? Click

Event Type

BarCommandLinkEventHandler

Inherited Members

Extension Methods