'宣言 Public Enum TreatValueAs Inherits System.Enum
public enum TreatValueAs : System.Enum
メンバ | 解説 |
---|---|
Auto | 値がURLまたは書式設定されたテキストかどうかを確認するために自動検出します。 |
FormattedText | 値を書式設定されたテキストとして扱います。 |
URL | 値をURLとして扱います。 |
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;