[This is preliminary documentation and is subject to change.]
Creates a new CssStyleSheet.
Namespace:
TallComponents.WebAssembly: TallComponents.WebToPDF (in TallComponents.WebToPDF.dll) Version: 1.0.2.7
Syntax
| C# |
|---|
public CssStyleSheet( string path, string basePath ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ path As String, _ basePath As String _ ) |
Parameters
- path
- Type: System..::.String
The (relative) (web)path to the stylesheet to load.
- basePath
- Type: System..::.String
Base path for loading path and included style sheets.
Remarks
This 'wrapper' tries to resolve the loaction of the stylesheet by checking various
types. The first matching is evaluated:
- path is already a complete url
- basepath is a url, appends the stylesheetName
- path is a local file (relative to current working folder)
- path is a local file (relative to given basepath)
- the application is running in a web context: the web path is resolved locally.