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 : Control, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
Inheritance
LinkLabel
Implements

Remarks

Example of how a LinkLabel can look:

LinkLabel

Constructors

LinkLabel()

Initializes a new instance of the LinkLabel class.

LinkLabel(string?)

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

Properties

ControlKind

Returns control identifier.

Handler

Gets control handler.

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.

Text

Gets or sets the text associated with this control.

Url

Gets or sets the URL associated with the hyperlink.

UseGenericControl

Gets or sets whether to use generic or native control for LinkLabel.

UseShellExecute

Gets or sets whether to use our ShellExecute(string, string?, string?) for opening the Url or allow native control to open it.

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

CreateHandler()

Creates a handler for the control.

OnLinkClicked(CancelEventArgs)

Called when a link is clicked within the control.

RaiseLinkClicked(CancelEventArgs)

Raises LinkClicked event.

Events

LinkClicked

Occurs when a link is clicked within the control.