LinkLabel

Wisej.Web.LinkLabel

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents an hyper-link control.

public class LinkLabel : 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

The text to display on the LinkLabel.

onLinkClicked

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

Initial text.

location

Initial location.

size

Initial size.

onLinkClicked

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).

Default value is Color.Red.

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.

Default value is a LinkArea with Start=0, Length = -1 Throws:

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.

Default value is Color.Blue

TabStop

Boolean: Returns or sets whether the user can give the focus to this control using the TAB key. (Default: False)

Methods

OnClick(e)

Fires the Click event.

Parameter
Type
Description

e

An EventArgs that contains the event data.

OnLinkClicked(e)

Fires the LinkClicked event.

Parameter
Type
Description

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

e

Event arguments.

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

config

Dynamic configuration object.

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

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Allows a control to act like a button on a Form.

Defines an object that can invoke a Command.

Controls that support drag & drop operations implement this interface.

Exposes a common api implemented by components that can collect errors in relation to a Control.

Provides access to common image properties across the controls that implement this interface.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?