Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
 /// <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)));
 }
Exemplo n.º 3
0
        /// <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));
        }
Exemplo n.º 4
0
 /// <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)));
 }
Exemplo n.º 5
0
        /// <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));
        }
Exemplo n.º 6
0
 /// <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)));
 }