/// <summary> /// 读Color /// </summary> /// <param name="section">section</param> /// <param name="key">key</param> /// <param name="Default">Normal</param> /// <returns>结果</returns> public Color ReadColor(string section, string key, Color Default) { string str = Read(section, key, ""); return((Color)ConvertEx.StringToObject(str, typeof(Color), Default)); }
/// <summary> /// 写Color /// </summary> /// <param name="section">section</param> /// <param name="key">key</param> /// <param name="value">value</param> public void Write(string section, string key, Color value) { Write(section, key, ConvertEx.ObjectToString(value, typeof(Color))); }
/// <summary> /// 读SizeF /// </summary> /// <param name="section">section</param> /// <param name="key">key</param> /// <param name="Default">Normal</param> /// <returns>结果</returns> public SizeF ReadSizeF(string section, string key, SizeF Default) { string str = Read(section, key, ""); return((SizeF)ConvertEx.StringToObject(str, typeof(SizeF), Default)); }
/// <summary> /// 写SizeF /// </summary> /// <param name="section">section</param> /// <param name="key">key</param> /// <param name="value">value</param> public void Write(string section, string key, SizeF value) { Write(section, key, ConvertEx.ObjectToString(value, typeof(SizeF))); }
/// <summary> /// 读PointF /// </summary> /// <param name="section">section</param> /// <param name="key">key</param> /// <param name="Default">Normal</param> /// <returns>结果</returns> public PointF ReadPointF(string section, string key, PointF Default) { string str = Read(section, key, ""); return((PointF)ConvertEx.StringToObject(str, typeof(PointF), Default)); }
/// <summary> /// 写Point /// </summary> /// <param name="section">section</param> /// <param name="key">key</param> /// <param name="value">value</param> public void Write(string section, string key, Point value) { Write(section, key, ConvertEx.ObjectToString(value, typeof(Point))); }