示例#1
0
文件: Mark.cs 项目: JustinCWolfe/Jcw
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            if (XCoordinate != null)
            {
                sb.Append(XCoordinate.ToString());
                sb.Append(", ");
            }
            if (YCoordinate != null)
            {
                sb.Append(YCoordinate.ToString());
                sb.Append(", ");
            }
            sb.Append(string.Format("Text={0}, MarkColor={1}", Text, MarkColorName));

            return(sb.ToString());
        }
 public string YCoordinateString()
 {
     return(YCoordinate.ToString(FormatUtils.GetNumberFormatInfo()));
 }