Share via


TextTrimConverter Class

Definition

Removes whitespace at beginning and end of a string.

public ref class TextTrimConverter : System::Windows::Data::IValueConverter
public class TextTrimConverter : System.Windows.Data.IValueConverter
type TextTrimConverter = class
    interface IValueConverter
Public Class TextTrimConverter
Implements IValueConverter
Inheritance
TextTrimConverter
Implements

Constructors

TextTrimConverter()

Creates a new TextTrimConverter. By default, both conversion directions are trimmed.

Methods

Convert(Object, Type, Object, CultureInfo)

Trims excess whitespace from the given string.

ConvertBack(Object, Type, Object, CultureInfo)

Trims extra whitespace from the given string during backward conversion.

Applies to