RemoveNewLinesConverter.cs
/// <summary>
/// Removes any newline (\r and \n) characters and replaces them with a single space character
/// </summary>
/// <param name="value"></param>
/// <param name="targetType"></param>
/// <param name="parameter"></param>
/// <param name="culture"></param>
/// <returns></returns>
Removes any newline (\r and \n) characters and replaces them with a single space character
Removes any newline ( \ r and \ n ) characters and replaces them with a single space character
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value != null)
            {
                value = value.ToString().Replace("\r", " ").Replace("\n", " ");
            }
            return value;
        }
public object Convert ( object value , Type targetType , object parameter , System . Globalization . CultureInfo culture ) { if ( value != null ) { value = value . ToString ( ) . Replace ( " \r " , " " ) . Replace ( " \n " , " " ) ; } return value ; }
Removes any newline (\r and \n) characters and replaces them with a single space character
Removes any newline ( \ r and \ n ) characters and replaces them with a single space character
None
value
object
None
targetType
Type
None
parameter
object
None
culture
System.Globalization.CultureInfo
None