Exemple #1
0
 /// <summary>
 /// Converts the string representation of a style to its <see cref="Style"/> equivalent.
 /// A return value indicates whether the operation succeeded.
 /// </summary>
 /// <param name="text">A string containing a style to parse.</param>
 /// <param name="result">
 /// When this method returns, contains the <see cref="Style"/> equivalent of the text contained in <paramref name="text"/>,
 /// if the conversion succeeded, or <c>null</c> if the conversion failed.
 /// </param>
 /// <returns><c>true</c> if s was converted successfully; otherwise, <c>false</c>.</returns>
 public static bool TryParse(string text, out Style?result)
 {
     return(StyleParser.TryParse(text, out result));
 }