Version

BaseURL Property

Specifies the base url for relative links and image sources. This can be a file path or an internet url.
Syntax
'Declaration
 
Public Property BaseURL As String
public string BaseURL {get; set;}
Remarks

You can specify relative sources for hyperlinks and images in the formatted text. The default behavior is to use the application's current path to resolve the url to access the associated resource. You can use the BaseURL property to control how relative URL's are resolved. Also note that the base URL can be set application-wide by setting the FormattedLinkEditor's BaseURLDefault property.

Example
You can use the BaseURL property to specify relative url's for hyperlinks, image sources and any tag that takes url's. Note that you can still specify absolute url's.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.Misc
Imports Infragistics.Win.FormattedLinkLabel

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' You can also specify a default base url for all instances of 
        ' UltraFormattedLinkLabel, UltraFormattedTextEditor and FormattedLinkEditor 
        ' in the entire application by setting the static BaseURLDefault property 
        ' of the FormattedLinkEditor.
        FormattedLinkEditor.BaseURLDefault = "http://www.infragistics.com"

        ' You can also set it on a specific control.
        Me.ultraFormattedLinkLabel1.BaseURL = "http://www.infragistics.com"

        ' This formatted text value that uses relative url for the image.
        Me.ultraFormattedLinkLabel1.Value = "Logo: <img src=""images/infragistics_logo.gif""/>"
    End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.Misc;
using Infragistics.Win.FormattedLinkLabel;
using System.Diagnostics;


		private void button1_Click(object sender, System.EventArgs e)
		{
			// You can also specify a default base url for all instances of 
			// UltraFormattedLinkLabel, UltraFormattedTextEditor and FormattedLinkEditor 
			// in the entire application by setting the static BaseURLDefault property 
			// of the FormattedLinkEditor.
			FormattedLinkEditor.BaseURLDefault = "http://www.infragistics.com";

			// You can also set it on a specific control.
			this.ultraFormattedLinkLabel1.BaseURL = "http://www.infragistics.com";

			// This formatted text value that uses relative url for the image.
			this.ultraFormattedLinkLabel1.Value = @"Logo: <img src=""images/infragistics_logo.gif""/>";
		}
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