Version

ActiveLinkAppearance Property

Appearance applied to the link when it's activated (while the mouse is down on the link).
Syntax
'Declaration
 
Public Property ActiveLinkAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase ActiveLinkAppearance {get; set;}
Remarks

ActiveLinkAppearance is applied to the link when the user presses a mouse button on the link. This appearance is applied while the mouse button is pressed down. When the mouse button is depressed, this appearance ceases to be applied.

Example
Imports Infragistics.Win
Imports Infragistics.Win.FormattedLinkLabel

' Treat the Value as a URL
Me.ultraFormattedLinkLabel1.TreatValueAs = TreatValueAs.URL

' Set the value to a URL
Me.ultraFormattedLinkLabel1.Value = "http://www.Infragistics.com"

' Apply a solid border
Me.ultraFormattedLinkLabel1.BorderStyle = UIElementBorderStyle.Solid

' Set the colors to black on White. 
Me.ultraFormattedLinkLabel1.Appearance.BackColor = Color.White
Me.ultraFormattedLinkLabel1.Appearance.ForeColor = Color.Black

' Make links display in Blue.
Me.ultraFormattedLinkLabel1.LinkAppearance.ForeColor = Color.Blue

' Make links purple when you mouse over them. 
Me.ultraFormattedLinkLabel1.HotTrackLinkAppearance.ForeColor = Color.Purple

' Only underling links when the mouse is over them. 
Me.ultraFormattedLinkLabel1.UnderlineLinks = UnderlineLink.WhenHovered

' When the link is active, display it in green.
Me.ultraFormattedLinkLabel1.ActiveLinkAppearance.ForeColor = Color.Green

' Visited links display in Red
Me.ultraFormattedLinkLabel1.VisitedLinkAppearance.ForeColor = Color.Red

' Put some padding around the inside of the control
Me.ultraFormattedLinkLabel1.Padding = New Size(5, 5)

' Do not autosize. 
Me.ultraFormattedLinkLabel1.AutoSize = False

' Do not wrap text. 
Me.ultraFormattedLinkLabel1.WrapText = False
using Infragistics.Win;
using Infragistics.Win.FormattedLinkLabel;

// Treat the Value as a URL
this.ultraFormattedLinkLabel1.TreatValueAs = TreatValueAs.URL;

// Set the value to a URL
this.ultraFormattedLinkLabel1.Value = "http://www.Infragistics.com";

// Apply a solid border
this.ultraFormattedLinkLabel1.BorderStyle = UIElementBorderStyle.Solid;

// Set the colors to black on White. 
this.ultraFormattedLinkLabel1.Appearance.BackColor = Color.White;
this.ultraFormattedLinkLabel1.Appearance.ForeColor = Color.Black;

// Make links display in Blue.
this.ultraFormattedLinkLabel1.LinkAppearance.ForeColor = Color.Blue;

// Make links purple when you mouse over them. 
this.ultraFormattedLinkLabel1.HotTrackLinkAppearance.ForeColor = Color.Purple;

// Only underling links when the mouse is over them. 
this.ultraFormattedLinkLabel1.UnderlineLinks = UnderlineLink.WhenHovered;

// When the link is active, display it in green.
this.ultraFormattedLinkLabel1.ActiveLinkAppearance.ForeColor = Color.Green;

// Visited links display in Red
this.ultraFormattedLinkLabel1.VisitedLinkAppearance.ForeColor = Color.Red;

// Put some padding around the inside of the control
this.ultraFormattedLinkLabel1.Padding = new Size(5,5);

// Do not autosize. 
this.ultraFormattedLinkLabel1.AutoSize = false;

// Do not wrap text. 
this.ultraFormattedLinkLabel1.WrapText = false;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also