Click or drag to resize

IProjectServiceTryOpenProjectItemFile Method

Tests if the provided file name to have an extension that is associated with the extension of a project item (a specific item of the project), and if it is, tries to open the project item and adds it to the current project.

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
bool TryOpenProjectItemFile(
	FileName fileName,
	bool forceTrialRegardlessOfExtension
)

Parameters

fileName  FileName
Name of the file.
forceTrialRegardlessOfExtension  Boolean
If true, it is tried to deserialize the object in the file regardless of the file extension.

Return Value

Boolean
True if the fileName has an extension that is a project document extension, and the document could successfully be opened; otherwise, false.
See Also