Table of Contents

Class LinkLabel

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Represents a url label control.

[DefaultBindingProperty("Text")]
[ControlCategory("Other")]
public class LinkLabel : Label, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
Inheritance
LinkLabel
Implements

Remarks

Example of how a LinkLabel can look:

LinkLabel

Constructors

LinkLabel()

Initializes a new instance of the LinkLabel class.

LinkLabel(Control)

Initializes a new instance of the LinkLabel class.

LinkLabel(string?)

Initializes a new instance of the LinkLabel class with the specified text.

Fields

DefaultHoverColor

Gets or sets default hyperlink hover color which is used in the control. Default is null. If this value is not assigned, DefaultNormalColor is used.

DefaultVisitedColor

Gets or sets default visited hyperlink color which is used in the control. Default is null. If this value is not assigned, DefaultNormalColor is used.

Properties

ControlKind

Returns control identifier.

DefaultNormalColor

Gets or sets default normal hyperlink color which is used in the control.

HoverColor

Gets or sets the color used to draw the label of the hyperlink when the mouse is over the control.

NormalColor

Gets or sets the color used to draw the label when the link has never been clicked before (i.e. the link has not been visited) and the mouse is not over the control.

Url

Gets or sets the URL associated with the hyperlink.

Visited

Gets or sets whether the hyperlink has already been clicked by the user at least one time.

VisitedColor

Gets or sets the color used to draw the label when the mouse is not over the control and the link has already been clicked before (i.e. the link has been visited).

Methods

GetLabelForeColor(VisualControlState)

Gets Color which is used to draw label's text.

OnClick(EventArgs)

Called when the control is clicked.

OnLinkClicked(CancelEventArgs)

Called when a link is clicked within the control.

OnMouseDoubleClick(MouseEventArgs)

Called when the mouse button was double-clicked.

RaiseLinkClicked(CancelEventArgs)

Raises LinkClicked event.

Events

LinkClicked

Occurs when a link is clicked within the control.