Interface IUserAgentService

Interface IUserAgentService

Namespace: Aspose.Html.Services
Assembly: Aspose.HTML.dll (25.2.0)

An interface that is described a user agent environment.

[ComVisible(true)]
public interface IUserAgentService

Properties

CSSEngineMode

Gets or sets mode in which CSS engine works.

CSSEngineMode CSSEngineMode { get; set; }

Property Value

CSSEngineMode

CharSet

Gets or sets the primary character-set for a document.

string CharSet { get; set; }

Property Value

string

FontsSettings

Gets a Aspose.Html.FontsSettings object which is used for configuration of fonts handling.

FontsSettings FontsSettings { get; }

Property Value

FontsSettings

Language

The Aspose.Html.Services.IUserAgentService.Language specifies the primary language for the element’s contents and for any of the element’s attributes that contain text. Its value must be a valid BCP 47 (http://www.ietf.org/rfc/bcp/bcp47.txt) language tag, or the empty string. Setting the attribute to the empty string indicates that the primary language is unknown.

string Language { get; set; }

Property Value

string

ShowImagePlaceholders

Images can have fallback content: content that should be used when an external resource cannot be used (for example, because it is in an unsupported format). The property Aspose.Html.Services.IUserAgentService.ShowImagePlaceholders specifies whether to display the fallback image (default is true) https://html.spec.whatwg.org/multipage/dom.html#fallback-content

bool ShowImagePlaceholders { get; set; }

Property Value

bool

UserStyleSheet

Allows to specify style information for a particular document

string UserStyleSheet { get; set; }

Property Value

string