In This Article

BarLabelLink Class

Represents a bar label command link.

[TypeConverter(typeof(BarLabelLinkConverter))]
public class BarLabelLink : BarCommandLink, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IImageListProvider
Inheritance:
object MarshalByRefObject MarshalByRefDisposableObject LogicalTreeNodeBase UIElement BarCommandLink object
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IImageListProvider

Constructors

Initializes an instance of the class.

public BarLabelLink(BarLabelCommand command)
Parameter Type Description
command BarLabelCommand

The BarCommand upon which the link is based.

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

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

beginAGroup bool?

Whether to begin a group. When null, the default value is assigned (which is false unless overridden by a derived class).

Properties

The BarLabelCommand to link to.

[Browsable(false)]
public BarLabelCommand Command { get; }

Property Value

BarLabelCommand

Methods

Raises the MouseDown event.

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

The event data.

Renders the element.

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

The event data.

Inherited Members

Extension Methods