Version

BaseURLDefault Property

Specifies the base url for relative links and image sources. This can be a file path or an internet url.
Syntax
'Declaration
 
Public Shared Property BaseURLDefault As String
public static string BaseURLDefault {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 BaseURLDefault property to control how relative URL's are resolved. Note that this property is static and can be used to set the base URL for all instances of formatted text editors in an application. To set the base URL for a specific instance of FormattedLinkEditor, use it's BaseURL 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://es.infragistics.com"

        ' You can also set it on a specific control.
        Me.ultraFormattedLinkLabel1.BaseURL = "http://es.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://es.infragistics.com";

			// You can also set it on a specific control.
			this.ultraFormattedLinkLabel1.BaseURL = "http://es.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