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.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
BooleanTrue if the fileName has an extension that is a project document extension, and the document could successfully be opened; otherwise, false.
See Also