Click or drag to resize

HtmlLoadOptionsBaseAddress Property

Gets or sets the base address for images with relative location.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version:
public string BaseAddress { get; set; }

Property Value

Type: String
The base address for images with relative location.

Images with relative location such as <img src="Pictures/MyPicture.jpg"/> or <img src="../../Pictures/MyPicture.jpg"/> are read based from BaseAddress or path parameter if DocumentModel.Load(string) or DocumentModel.Load(string, LoadOptions) method is used.

This property is useful if HTML document is loaded from Stream with DocumentModel.Load(Stream, LoadOptions) method and contains images with relative locations.

See Also