Table of Contents

Class HtmlStylesheetLoadEventArgs

Namespace
TheArtOfDev.HtmlRenderer.Core.Entities
Assembly
StockSharp.Xaml.dll

Invoked when a stylesheet is about to be loaded by file path or URL in 'link' element.
Allows to overwrite the loaded stylesheet by providing the stylesheet data manually, or different source (file or URL) to load from.
Example: The stylesheet 'href' can be non-valid URI string that is interpreted in the overwrite delegate by custom logic to pre-loaded stylesheet object
If no alternative data is provided the original source will be used.

public sealed class HtmlStylesheetLoadEventArgs : EventArgs
Inheritance
HtmlStylesheetLoadEventArgs
Inherited Members
Extension Methods

Properties

Attributes

collection of all the attributes that are defined on the link element

public Dictionary<string, string> Attributes { get; }

Property Value

Dictionary<string, string>

SetSrc

provide the new source (file path or URL) to load stylesheet from

public string SetSrc { get; set; }

Property Value

string

SetStyleSheet

provide the stylesheet to load

public string SetStyleSheet { get; set; }

Property Value

string

SetStyleSheetData

provide the stylesheet data to load

public CssData SetStyleSheetData { get; set; }

Property Value

CssData

Src

the source of the stylesheet as found in the HTML (file path or URL)

public string Src { get; }

Property Value

string