Chỉnh sửa

NullableBoolConverter Class

Definition

Converts to and from the Nullable<T> type (using the Boolean type constraint on the generic).

public ref class NullableBoolConverter : System::ComponentModel::NullableConverter
public class NullableBoolConverter : System.ComponentModel.NullableConverter
type NullableBoolConverter = class
    inherit NullableConverter
Public Class NullableBoolConverter
Inherits NullableConverter
Inheritance
NullableBoolConverter

Remarks

The Nullable<bool> type is used for selection state in certain controls. This converter enables that non-set attribute values do not mean either true or false but instead mean an unset state.

Constructors

Name Description
NullableBoolConverter()

Initializes a new instance of the NullableBoolConverter class.

Methods

Name Description
GetStandardValues(ITypeDescriptorContext)

Returns a collection of standard values for the data type that this type converter is designed for.

GetStandardValuesExclusive(ITypeDescriptorContext)

Returns whether the collection of standard values returned from GetStandardValues(ITypeDescriptorContext) is an exclusive list.

GetStandardValuesSupported(ITypeDescriptorContext)

Returns whether this object supports a standard set of values that can be picked from a list.

Applies to

See also