EditorWebViewDotnetInterop.ScrollPreviewToEditorLineCallback

Scrolls the preview editor - typically in response to editor scroll or click operations based on the PreviewSyncMode setting

public Task ScrollPreviewToEditorLineCallback(int editorLineNumber,
	bool updateCodeBlocks,
	bool noScrollTimeout,
	bool noScrollTopAdjustment)

Parameters

editorLineNumber
Line number or -1 to use current editor line

updateCodeBlocks
if true reformats code blocks

noScrollTimeout
if true does not adjust the editor scroll timeout so that a preview scroll will not scroll the editor. In effect if true the preview is scrolled and the editor adjusted which results in a 'double' scroll which generally is not desired, but used internally in some situations for explict preview scrolling.

noScrollTopAdjustment
if true the preview scroll position is not updated at all


See also:

Class EditorWebViewDotnetInterop

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