Class WebViewPreviewDotnetInterop

Class that is called from browser JavaScript to interact with the Markdown Monster UI/Editor

System.Object
  MarkdownMonster.Windows.PreviewBrowser.WebViewPreviewDotnetInterop
public class WebViewPreviewDotnetInterop : object

Class Members

MemberDescription

Constructor

GotoBottom

Goes to the bottom of the editor

public Task GotoBottom(object noRefresh,     object noSelection)

GotoLine

Navigates the Editor to a specified line

public Task GotoLine(object editorLine,     object noRefresh)

InitializeInterop

Initial call into JavaScript to

public void InitializeInterop()

InitializeInteropAsync

Intial Call into JavaScript

public Task InitializeInteropAsync()

IsPreviewToEditorSync

Checks to see if the editor and preview are synced and if scrolling the preview needs to scroll the editor.

public bool IsPreviewToEditorSync()

PreviewContextMenu

Shows the WPF Preview menu

public Task PreviewContextMenu(string positionAndElementType)

PreviewLinkNavigation

Fired when a link is clicked in the preview editor. Opens a new external browser instance with the URL opened or opens certain supported files (like other markdown files) in the editor.

public bool PreviewLinkNavigation(string url,     string src)

PreviewLinkNavigationAsync

Fired when a link is clicked in the preview editor. Opens a new external browser instance with the URL opened or opens certain supported files (like other markdown files) in the editor.

public Task PreviewLinkNavigationAsync(string url,     string src)

JsInterop

Optional reference to the JavaScript interop that allows calling into JavaScript from .NET code.

Requirements

Namespace: MarkdownMonster.Windows.PreviewBrowser
Assembly: markdownmonster.exe

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