MaterialCodeOCR.cs
881 字节
using System;
namespace Model
{
public class MaterialCodeOCR
{
public int ID { get; set; } = -1;
public string Text { get; set; } = "";
public int CodeID { set; get; } = -1;
public float OffsetX { set; get; } = 0;
public float OffsetY { set; get; } = 0;
public int Width { set; get; } = 0;
public int Height { set; get; } = 0;
//public string Mode { set; get; } = "";
public MaterialCodeOCR Clone()
{
MaterialCodeOCR node = new();
System.Reflection.PropertyInfo[] destination = node.GetType().GetProperties();
System.Reflection.PropertyInfo[] orgin = GetType().GetProperties();
for (int i = 0; i < destination.Length; i++)
destination[i].SetValue(node, orgin[i].GetValue(this));
return node;
}
}
}