バージョン

UnderlineLinks プロパティ

リンクにいつ下線を付けるかを指定します。
シンタックス
'宣言
 
Public Property UnderlineLinks As UnderlineLink
public UnderlineLink UnderlineLinks {get; set;}
解説

デフォルトで、レジストリから設定を読み取ることによって、動作 MS Internet Explorer から自動検索されます。UnderlineLinks プロパティを使用して、動作を明示的に設定します。

使用例
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;
参照