In This Article

BarLabelLink Class

Represents a bar label command link.

public class BarLabelLink : BarCommandLink, IInputElement, IUIElement, ILogicalTreeNode, IDisposable, IImageListProvider
Inheritance:
Object MarshalByRefObject DisposableObject LogicalTreeNodeBase UIElement BarCommandLink Object
Implements:
IInputElement IUIElement ILogicalTreeNode IDisposable IImageListProvider

Constructors

Initializes a new instance of the BarLabelLink class, based on an existing BarLabelCommand.

public BarLabelLink(BarLabelCommand command)
Parameter Type Description
command BarLabelCommand

The BarCommand upon which the link is based.

Initializes a new instance of the BarLabelLink class, for use in a programmatically created popup menu.

public BarLabelLink(string category, string name, string text, int imageIndex, bool beginAGroup)
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.

beginAGroup Boolean

Whether to begin a group.

Properties

Gets the BarLabelCommand to link to.

public BarLabelCommand Command { get; }

Property Value

BarLabelCommand:

The BarLabelCommand to link to.

Methods

Raises the MouseDown event.

protected override void OnMouseDown(MouseEventArgs e)
Parameter Type Description
e MouseEventArgs

A MouseEventArgs that contains the event data.

Renders the element.

protected override void OnRender(PaintEventArgs e)
Parameter Type Description
e PaintEventArgs

A PaintEventArgs that contains the event data.

Inherited Members