This class is used to call into the JavaScript document and perform operations there.
Note there's no inheritance/Composition as this interface requires Async operation, while the COM interface for WebBrowser control requires sync operation.
Westwind.WebView.Wpf.BaseJavaScriptInterop
MarkdownMonster.Windows.PreviewBrowser.WebViewPreviewJavaScriptInterop
public class WebViewPreviewJavaScriptInterop : BaseJavaScriptInterop
Class Members
Member | Description | |
---|---|---|
Constructor |
||
InitializeInterop |
Initialize the document public Task InitializeInterop() |
|
ScrollToPragmaLine |
Scroll to a specific line in the document public Task ScrollToPragmaLine(int editorLineNumber, string headerId, bool updateCodeBlocks, bool noScrollTimeout, bool noScrollTopAdjustment) |
|
UpdateDocumentContent |
Update the document with an HTML string. Optional line number on where to scroll the document to. public Task UpdateDocumentContent(string html, int lineNo) |
Requirements
Namespace: MarkdownMonster.Windows.PreviewBrowserAssembly: markdownmonster.exe
© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic