ClassIsStringEmptyToBoolConverter
Converts a string value to a boolean indicating whether the string is empty or not.
Definition
Namespace:Telerik.Windows.Documents.Utils
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class IsStringEmptyToBoolConverter : IValueConverter
Inheritance: objectIsStringEmptyToBoolConverter
Implements:
Constructors
IsStringEmptyToBoolConverter()
Declaration
public IsStringEmptyToBoolConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts the specified value to a boolean indicating whether the string is empty.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The value to convert, which should be a string or null.
targetType
The type of the target property.
parameter
An optional parameter that can be used to influence the conversion.
culture
The culture to use in the conversion process.
Returns
True if the string is null or empty; otherwise, false.
ConvertBack(object, Type, object, CultureInfo)
Converts a value from a string representation to a boolean value.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The object to convert back to a boolean. This should be a string.
targetType
The type to convert the value to, typically a boolean type.
parameter
An optional parameter that can modify the conversion logic.
culture
The culture information that may be used in the conversion process.
Returns
A boolean value indicating whether the string representation is empty or not.