示例#1
0
文件: Item.cs 项目: 15831944/Sheet
        private PointItem DeserializePoint(string[] m)
        {
            var pointItem = new PointItem();

            pointItem.Id = int.Parse(m[1]);
            pointItem.X  = double.Parse(m[2]);
            pointItem.Y  = double.Parse(m[3]);
            return(pointItem);
        }
示例#2
0
文件: Item.cs 项目: 15831944/Sheet
 public void Serialize(StringBuilder sb, PointItem point, string indent, ItemSerializeOptions options)
 {
     sb.Append(indent);
     sb.Append("POINT");
     sb.Append(options.ModelSeparator);
     sb.Append(point.Id);
     sb.Append(options.ModelSeparator);
     sb.Append(point.X);
     sb.Append(options.ModelSeparator);
     sb.Append(point.Y);
     sb.Append(options.LineSeparator);
 }
示例#3
0
文件: Item.cs 项目: 15831944/Sheet
 public void Move(PointItem point, double x, double y)
 {
     point.X += x;
     point.Y += y;
 }