/// <summary>
        /// Opens a workbook.
        /// </summary>
        /// <param name="filePath">The path to the workbook file.</param>
        /// <param name="loadOptions">Optional load options to control how workbook is opened.</param>
        /// <returns>
        /// An open workbook.
        /// </returns>
        public static Workbook OpenWorkbook(
            string filePath,
            LoadOptions loadOptions = null)
        {
            AsposeCellsLicense.ThrowIfNotRegistered();

            var workbookLoadOptions = loadOptions ?? new LoadOptions();
            var result = new Workbook(filePath, workbookLoadOptions);

            return(result);
        }
        /// <summary>
        /// Creates a new workbook within a "standard" environment which ensures that
        /// the range of write-related helper methods in this library behave as expected.
        /// </summary>
        /// <param name="fileFormatType">The file format type to use.</param>
        /// <returns>
        /// A new workbook.
        /// </returns>
        public static Workbook CreateStandardWorkbook(
            FileFormatType fileFormatType = FileFormatType.Xlsx)
        {
            AsposeCellsLicense.ThrowIfNotRegistered();

            EnsureSizingOperationsHonorPixelsSpecified();

            var result = new Workbook(fileFormatType);

            return(result);
        }