Class Engine
- Namespace
- ComOfficeKit
- Assembly
- ComOfficeKit.dll
The native engine this package runs on.
public static class Engine
- Inheritance
-
Engine
- Inherited Members
Properties
Version
The engine's version, as its build reports it.
public static string Version { get; }
Property Value
Exceptions
- ComOfficeKitException
EngineMismatch when the engine is missing or not this package's.
Methods
Configure(EngineOptions)
Sets what a server decides before its first document: the folder the engine works in, a quota on that folder, and font folders. Call it once, at startup, before the first document opens; without it the engine works in the system's temporary folder, with no quota.
public static void Configure(EngineOptions options)
Parameters
optionsEngineOptionsThe settings. Each is checked here before the engine is called.
Exceptions
- ArgumentNullException
optionsis null.- ArgumentException
WorkingDirectory is empty, or FontDirectories holds more than 64 folders, an empty path, or a folder that is not there.
- ArgumentOutOfRangeException
WorkingDirectoryQuota is not above 0.
- InvalidOperationException
The engine was configured already, or a document has opened.
- ComOfficeKitException
Unsupported when FontDirectories is not empty on Windows, where DirectWrite uses the system's fonts; nothing is configured then. EngineMismatch when the engine is missing or not this package's.