LinkLabel
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents an hyper-link control.
- C#
- VB.NET
public class LinkLabel : Label
Public Class LinkLabel
Inherits Label
Constructors
LinkLabel()
Initializes a new default instance of the LinkLabel class.
LinkLabel(text, onLinkClicked)
Initializes a new instance of the LinkLabel class with the specified text.
| Name | Type | Description |
|---|---|---|
| text | String | The text to display on the LinkLabel. |
| onLinkClicked | Action<Object, LinkLabelLinkClickedEventArgs> | The event handler that executes when the link area is clicked. |
LinkLabel(text, location, size, onLinkClicked)
Initializes a new instance of the Label class.
| Name | Type | Description |
|---|---|---|
| text | String | Initial text. |
| location | Point | Initial location. |
| size | Size | Initial size. |
| onLinkClicked | Action<Object, LinkLabelLinkClickedEventArgs> | The event handler that executes when the link area is clicked. |
Properties
ActiveLinkColor
Color: Returns or sets the color used to display an active link (while being pressed).
DisabledLinkColor
Color: Returns or sets the color used when displaying a disabled link.
LinkArea
LinkArea: Returns or sets the range in the text to treat as a link.
Throws:
- ArgumentOutOfRangeException The Start property of the LinkArea object is less than zero; or the Length property of the LinkArea object is less than -1.
LinkBehavior
LinkBehavior: Returns or sets a value that represents the behavior of a link. (Default: SystemDefault)
LinkColor
Color: Returns or sets the color used when displaying a link.
TabStop
Boolean: Returns or sets whether the user can give the focus to this control using the TAB key. (Default: False)
Methods
PerformClick()
Generates a Click event for the LinkLabel control.
Events
LinkClicked
LinkLabelLinkClickedEventHandler Fired when a link is clicked within the control.
TabStopChanged
EventHandler Fired when the value of the TabStop property changes.
Implements
| Name | Description |
|---|---|
| IBindableComponent | Bindable components implement this interface. |
| IButtonControl | Allows a control to act like a button on a Form. |
| ICommandSource | Defines an object that can invoke a Command. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| IErrorProvider | Exposes a common api implemented by components that can collect errors in relation to a Control. |
| IImage | Provides access to common image properties across the controls that implement this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |