Exemple #1
0
        /// <summary>
        /// Gets The AutoHotkey End Char symbol that matched the <see cref="EndCharsEnum"/> Value
        /// </summary>
        /// <param name="this"></param>
        /// <returns>
        /// String that Represents the AutoHotkey End Char Symbol
        /// </returns>
        /// <remarks>
        /// <seealso cref="EndCharKeyMap"/>
        /// <seealso cref="AhkKeyMapAhkMapValue"/>
        /// <seealso cref="EndCharsEnum"/>
        /// </remarks>
        /// <example>
        /// string strSymbol = EndCharsEnum.CloseParenthesis.GetAutoHotKeySynbol();
        /// </example>
        public static string GetAutoHotKeySynbol(this EndCharsEnum @this)
        {
            string EnumName = @this.ToString();

            var itm = EndCharKeyMap.Instance[EnumName];

            if (itm == null)
            {
                return(string.Empty);
            }
            return(itm.AutoHotKeyValue);
        }
Exemple #2
0
        /// <summary>
        /// Gets <see cref="AhkKeyMapAhkMapValue"/> the represents extended information about
        /// the <see cref="EndCharsEnum"/> value.
        /// </summary>
        /// <param name="this"><see cref="EndCharsEnum"/></param>
        /// <returns>
        /// <see cref="AhkKeyMapAhkMapValue"/> instance for the Enum
        /// </returns>
        /// <remarks>
        /// <seealso cref="EndCharKeyMap"/>
        /// <seealso cref="AhkKeyMapAhkMapValue"/>
        /// <seealso cref="EndCharsEnum"/>
        /// </remarks>
        /// <example>
        /// AhkKeyMapAhkMapValue info = EndCharsEnum.A.GetAhkMapValue();
        /// </example>
        public static AhkKeyMapAhkMapValue GetAhkMapValue(this EndCharsEnum @this)
        {
            string EnumName = @this.ToString();

            return(EndCharKeyMap.Instance[EnumName]);
        }