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 Task<TabItem> OpenFile(string filename, MarkdownDocumentEditor editor, bool showPreviewIfActive, string syntax, bool selectTab, bool rebindTabHeaders, bool batchOpen, int initialLineNumber, bool readOnly, bool noFocus, bool isPreview, bool noShellNavigation)
Return Value
Tab or Null
Parameters
filename
editor
showPreviewIfActive
syntax
selectTab
rebindTabHeaders
batchOpen
initialLineNumber
readOnly
noFocus
isPreview
noShellNavigation
If true last resort editing will open in editor rather than shell execute
See also:
Class MainWindow© West Wind Technologies, 2016-2024 • Updated: 11/23/21
Comment or report problem with topic