/// <summary> /// CSV文字列取得 /// </summary> /// <returns></returns> public string ToCsv() { string ret = string.Empty; string[] fields = new string[dataNum]; fields[0] = string.Format("{0:D}", this.Id); fields[1] = string.Format("{0}", this.Name); fields[2] = string.Format("{0:F5}", this.YAxisMax); fields[3] = string.Format("{0:F5}", this.YAxisMin); fields[4] = string.Format("{0}", this.LineColor.Name); fields[5] = string.Format("{0:F0}", this.LineWidth); fields[6] = string.Format("{0}", this.Visible); fields[7] = string.Format("{0:D}", Axis.Id); fields[8] = string.Format("{0}", Axis.Name); fields[9] = string.Format("{0}", Axis.UnitName); fields[10] = string.Format("{0}", Axis.GridLineVisible); fields[11] = string.Format("{0:F5}", Axis.GridResolution); fields[12] = string.Format("{0}", Axis.AxisColor.Name); fields[13] = string.Format("{0:D}", Axis.DispOrder); //ret = string.Join(",", fields); ret = CsvUtil.Join(fields); return(ret); }
/// <summary> /// CSV文字列取得 /// </summary> /// <returns></returns> public string ToCsv() { string ret = string.Empty; string[] fields = new string[fieldNum]; fields[0] = string.Format("{0:D}", this.Id); fields[1] = string.Format("{0}", this.Name); fields[2] = string.Format("{0}", this.UnitName); fields[3] = string.Format("{0:F5}", this.AdRangeMax); fields[4] = string.Format("{0:F5}", this.AdRangeMin); fields[5] = string.Format("{0:F5}", this.AxisMax); fields[6] = string.Format("{0:F5}", this.AxisMin); fields[7] = string.Format("{0}", this.GridLineVisible); fields[8] = string.Format("{0:F5}", this.GridResolution); fields[9] = string.Format("{0}", this.AxisColor.Name); fields[10] = string.Format("{0:D}", this.DispOrder); fields[11] = string.Format("{0}", this.IsY2Axis); ret = CsvUtil.Join(fields); return(ret); }