(string Data)
| 53 | } |
| 54 | |
| 55 | public static PointF StringToPointF(string Data) |
| 56 | { |
| 57 | string[] tRectArr = Data.Split(','); |
| 58 | |
| 59 | if (tRectArr.Length != 2) |
| 60 | throw new Exception("格式不正确: 请确保为'x,y'."); |
| 61 | |
| 62 | return new PointF( |
| 63 | Convert.ToSingle(tRectArr[0]), |
| 64 | Convert.ToSingle(tRectArr[1]) |
| 65 | ); |
| 66 | } |
| 67 | |
| 68 | public static RectangleF StringToRectangleF(string Data) |
| 69 | { |
nothing calls this directly
no outgoing calls
no test coverage detected