Exemplo n.º 1
0
        /// <summary>
        /// 以制表位分割的题目
        /// </summary>
        /// <returns></returns>
        public string GetTabTitles()
        {
            StringBuilder sb = new StringBuilder();

            if (Value is IToTabRow)
            {
                IToTabRow row = Value as IToTabRow;
                sb.Append(row.GetTabTitles());
            }
            else
            {
                sb.Append("值");
            }

            return(sb.ToString());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 以制表位分割的值
        /// </summary>
        /// <returns></returns>
        public string GetTabValues()
        {
            StringBuilder sb = new StringBuilder();

            if (Value is IToTabRow)
            {
                IToTabRow row = Value as IToTabRow;
                sb.Append(row.GetTabValues());
            }
            else
            {
                sb.Append(String.Format(new NumeralFormatProvider(), "{0}", Value));
            }

            return(sb.ToString());
        }
Exemplo n.º 3
0
        /// <summary>
        /// Tab 分开项目的标题
        /// </summary>
        /// <returns></returns>
        public override string GetTabTitles()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(base.GetTabTitles());
            foreach (var item in this.Corrections)
            {
                sb.Append("\t");
                sb.Append(item.Key);
                if (item.Value is IToTabRow)
                {
                    IToTabRow row = item.Value as IToTabRow;
                    sb.Append(row.GetTabTitles());
                }
            }
            return(sb.ToString());
        }
Exemplo n.º 4
0
        /// <summary>
        /// 以Tab分开的项。
        /// </summary>
        /// <returns></returns>
        public override string GetTabValues()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(base.GetTabValues());
            foreach (var item in this.Corrections)
            {
                sb.Append("\t");
                if (item.Value is IToTabRow)
                {
                    IToTabRow row = item.Value as IToTabRow;
                    sb.Append(row.GetTabValues());
                }
                else
                {
                    sb.Append(String.Format(FormatProvider, "{0}", item.Value));
                }
            }
            return(sb.ToString());
        }