Class
IsStringEmptyToBoolConverter

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:

cs-api-definition
public class IsStringEmptyToBoolConverter : IValueConverter

Inheritance: objectIsStringEmptyToBoolConverter

Implements: IValueConverter

Constructors

IsStringEmptyToBoolConverter()

Declaration

cs-api-definition
public IsStringEmptyToBoolConverter()

Methods

Convert(object, Type, object, CultureInfo)

Converts the specified value to a boolean indicating whether the string is empty.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The value to convert, which should be a string or null.

targetType

Type

The type of the target property.

parameter

object

An optional parameter that can be used to influence the conversion.

culture

CultureInfo

The culture to use in the conversion process.

Returns

object

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

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The object to convert back to a boolean. This should be a string.

targetType

Type

The type to convert the value to, typically a boolean type.

parameter

object

An optional parameter that can modify the conversion logic.

culture

CultureInfo

The culture information that may be used in the conversion process.

Returns

object

A boolean value indicating whether the string representation is empty or not.