Class WebViewPreviewJavaScriptInterop

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.

System.Object
  Westwind.WebView.Wpf.BaseJavaScriptInterop
    MarkdownMonster.Windows.PreviewBrowser.WebViewPreviewJavaScriptInterop
public class WebViewPreviewJavaScriptInterop : BaseJavaScriptInterop

Class Members

MemberDescription

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.PreviewBrowser
Assembly: markdownmonster.exe

© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic