In This Article

BarCustomControlLink Class

Represents a bar custom control command link.

[TypeConverter(typeof(BarTextBoxLinkConverter))]
public class BarCustomControlLink : BarCommandLink, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IImageListProvider
Inheritance:
object MarshalByRefObject DisposableObject LogicalTreeNodeBase UIElement BarCommandLink object
Derived:
BarComboBoxLink BarTextBoxLink
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IImageListProvider

Constructors

Initializes a new instance of the BarCustomControlLink class.

public BarCustomControlLink(BarCustomControlCommand command, Control control)
Parameter Type Description
command BarCustomControlCommand
control Control

Properties

Gets the Control that is wrapped by the command link.

[Browsable(false)]
public Control Control { get; }

Property Value

Control:

The Control that is wrapped by the command link.

Gets whether the control should be visible.

protected virtual bool ControlVisible { get; }

Property Value

bool:

true if the control should be visible; otherwise, false.

Gets or sets whether the command link is visible.

protected override bool VisibleCore { get; set; }

Property Value

bool:

true if the command link is visible; otherwise, false.

Methods

Blurs (removes) focus from the control.

public virtual void Blur()

Blurs (removes) focus from the control.

public void Blur(bool moveFocus)
Parameter Type Description
moveFocus bool

Whether to also move focus.

Disposes any resources used by the object.

protected override void Dispose(bool disposing)
Parameter Type Description
disposing bool

Whether the object is being disposed.

Sets focus to the control.

public virtual void Focus()

Occurs after the command's Enabled property has changed.

protected override void OnEnabledChanged(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

Occurs when the command link control gets focus.

protected virtual void OnGotFocus(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

Occurs when the command link control loses focus.

protected virtual void OnLostFocus(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

Invoked when logical parent is changed. This is invoked after the parent has changed, and the purpose is to allow elements to perform actions based on the changed parent.

protected override void OnParentChanged()

Inherited Members