⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 originoperatingsystems.cs

📁 Excel的操作,其中可以读取及写入Excel 文件
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Fawvw.Components.NExcel.MyOle2.Metadata
{
    ///<summary>
    /// Origin Operating System choices in OLE2 SummaryInformation streams.
    ///</summary>
    public enum OriginOperatingSystems
    {
        /// <summary>16-bit Windows</summary>
        Win16,

        /// <summary>Macintosh</summary>
        Macintosh,
        
        /// <summary>32-bit Windows</summary>
        Win32,
        
        /// <summary>Default - 32-bit Windows</summary>
        Default = Win32
    }

    internal static class OriginOperatingSystem
    {
        internal static byte[] GetBytes(OriginOperatingSystems system)
        {
            switch (system)
            {
                case OriginOperatingSystems.Win16:
                    return new byte[] { 0x00, 0x00 };
                case OriginOperatingSystems.Macintosh:
                    return new byte[] { 0x01, 0x00 };
                case OriginOperatingSystems.Win32:
                    return new byte[] { 0x02, 0x00 };
                default:
                    throw new ArgumentException(string.Format("unexpected value {0}", system.ToString()), "system");
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -