A special property condition that can partially match string properties. Matching is done using string functions like StartsWith, EndsWith and Contains. This also supports matching properties using regular expressions.
Inheritance: System.Windows.Automation.PropertyCondition
        /// <summary>
        ///     Gets the string representation of the specified string property condition.
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        private static string ToString(StringPropertyCondition condition)
        {
            var property = AutomationPropertyHelper.ProgrammaticName(condition.Property);
            var value = (string) condition.Value;
            var op = condition.Matcher.ToString();

            return property + op + "'" + value + "'";
        }