Esempio n. 1
0
        /// <summary>
        /// Get PointF from config.
        /// </summary>
        /// <param name="section">Section to get value from.</param>
        /// <param name="key">Key to get.</param>
        /// <param name="defaultVal">Default value to return if not found.</param>
        /// <returns>Value from config, or defaultVal if not found.</returns>
        public PointF GetPointF(string section, string key, PointF defaultVal)
        {
            var asStr = GetStr(section, key, null);

            if (asStr == null)
            {
                return(defaultVal);
            }
            return(PointF.FromString(asStr.Trim()));
        }