Version

CanEditType Method (ValueEditor)

Determines if the editor natively supports editing values of specified type.
Syntax
'Declaration
 
Public MustOverride Function CanEditType( _
   ByVal type As Type _
) As Boolean
public abstract bool CanEditType( 
   Type type
)

Parameters

type
The data type to check.

Return Value

Returns True if the editor natively supports editing values of specified type, False otherwise.
Remarks

CanEditType method indicates if the editor natively supports editing values of specified type. Typically there is no need to call this method. It's used by the value editor infrastructure.

Note: CanEditType does not indicate what types can be set on the ValueType property. ValueType property can be set to any type as long as there is conversion logic for converting between the native data type of the editor and that type. For example, XamTextEditor natively supports editing string type only. However its ValueType can be set to Double or DateTime or any type as long as the editor can convert between string and that data type. ValueType can even be set to a custom type. You can provide custom conversion logic using ValueToTextConverter and ValueToDisplayTextConverter properties.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also