fieldformatoption.cs

来自「csv解析类」· CS 代码 · 共 32 行

CS
32
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace QiHe.CodeLib.Csv
{
    public class FieldFormatOption
    {
        public int TotalWidth;
        public bool AlignRight;
        public bool AlwaysQuoted;

        public FieldFormatOption() { }

        public FieldFormatOption(bool alwaysQuoted)
        {
            TotalWidth = 0;
            AlignRight = false;
            AlwaysQuoted = alwaysQuoted;
        }

        public FieldFormatOption(int totalWidth, bool alignRight, bool alwaysQuoted)
        {
            TotalWidth = totalWidth;
            AlignRight = alignRight;
            AlwaysQuoted = alwaysQuoted;
        }

        public static readonly FieldFormatOption Default = new FieldFormatOption();
    }
}

⌨️ 快捷键说明

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