In This Article

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 ImageList.

Methods

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 BarCommandLinkEventArgs that contains the event data.

RaiseClickEvent(BarCommandLinkEventArgs)

Raises the Click event.

public void RaiseClickEvent(BarCommandLinkEventArgs e)
Parameter Type Description
e BarCommandLinkEventArgs

A BarCommandLinkEventArgs that contains 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

Boolean:

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