MainWindow.OpenFile

High level wrapper around OpenTab() that checks for different file types like images and projects that have non-tab behavior.

Use this function for generically opening files by filename .

public TabItem OpenFile(string filename,
	MarkdownDocumentEditor editor,
	bool showPreviewIfActive,
	string syntax,
	bool selectTab,
	bool rebindTabHeaders,
	bool batchOpen,
	int initialLineNumber,
	bool readOnly,
	bool noFocus,
	bool isPreview)

Return Value

Tab or Null

Parameters

filename

editor
showPreviewIfActive

syntax

selectTab

rebindTabHeaders

batchOpen

initialLineNumber

readOnly

noFocus

isPreview


See also:

Class MainWindow

© West Wind Technologies, 1996-2021 • Updated: 02/14/20
Comment or report problem with topic