In This Article

BarLabelCommand Class

Represents a bar label command.

public class BarLabelCommand : BarCommand, IImageListProvider
Inheritance:
Object Command BarCommand Object
Implements:
IImageListProvider

Constructors

BarLabelCommand(String, String, String, Int32)

Initializes a new instance of the BarLabelCommand class.

public BarLabelCommand(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.

ResetEnabled()

Resets the Enabled property to its default value.

public override void ResetEnabled()

ShouldSerializeEnabled()

Indicates whether the Enabled property should be persisted.

public override bool ShouldSerializeEnabled()

Returns

Boolean:

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

Inherited Members