LinkLabelExtensions
Wisej.Web.Markup.LinkLabelExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.LinkLabelExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the LinkLabel class.
public class LinkLabelExtensions
Sets the ActiveLinkColor property of the specified LinkLabel.
TLinkLabel
linkLabel
The link label for which to set the ActiveLinkColor property.
activeLinkColor
Returns: TLinkLabel. The modified link label with the updated ActiveLinkColor property.
This method allows you to specify the color of active links in the link label.
myLinkLabel.ActiveLinkColor(Color.Red);
Sets the DisabledLinkColor property of the specified LinkLabel.
TLinkLabel
linkLabel
The link label for which to set the DisabledLinkColor property.
disabledLinkColor
Returns: TLinkLabel. The modified link label with the updated DisabledLinkColor property.
This method allows you to specify the color of disabled links in the link label.
myLinkLabel.DisabledLinkColor(Color.Gray);
Sets the LinkArea property of the specified LinkLabel.
TLinkLabel
linkLabel
The link label for which to set the LinkArea property.
linkArea
Returns: TLinkLabel. The modified link label with the updated LinkArea property.
This method allows you to specify the area of text that is treated as a link in the link label.
myLinkLabel.LinkArea(new LinkArea(0, 10));
Sets the LinkBehavior property of the specified LinkLabel.
TLinkLabel
linkLabel
The link label for which to set the LinkBehavior property.
linkBehavior
Returns: TLinkLabel. The modified link label with the updated LinkBehavior property.
This method allows you to specify the behavior of the link label, such as how the link is displayed when the mouse is over it.
myLinkLabel.LinkBehavior(LinkBehavior.SystemDefault);
Sets the LinkColor property of the specified LinkLabel.
TLinkLabel
linkLabel
The link label for which to set the LinkColor property.
linkColor
Returns: TLinkLabel. The modified link label with the updated LinkColor property.
This method allows you to specify the color of links in the link label.
myLinkLabel.LinkColor(Color.Blue);
Attaches an event handler for the LinkClicked event of the specified LinkLabel.
TLinkLabel
linkLabel
The link label to attach the event handler to.
action
An action to execute when a link is clicked.
Returns: TLinkLabel. The modified link label with the attached LinkClicked event handler.
This method allows you to execute a custom action whenever a link in the link label is clicked.
myLinkLabel.OnLinkClicked((ll, args) =>
{
AlertBox.Show("Link clicked!");
});
The type of the link label, must inherit from .
The to set for active links.
The type of the link label, must inherit from .
The to set for disabled links.
The type of the link label, must inherit from .
The to set for the link label.
The type of the link label, must inherit from .
The to set for the link label.
The type of the link label, must inherit from .
The to set for links.
The type of the link label, must inherit from .