Share via


PropertyValue.ConvertStringToValue Method

When overridden in a derived class, attempts to convert the specified String to an Object.

Namespace:  Microsoft.Windows.Design.PropertyEditing
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected MustOverride Function ConvertStringToValue ( _
    value As String _
) As Object
protected abstract Object ConvertStringToValue(
    string value
)
protected:
virtual Object^ ConvertStringToValue(
    String^ value
) abstract
abstract ConvertStringToValue : 
        value:string -> Object 
protected abstract function ConvertStringToValue(
    value : String
) : Object

Parameters

Return Value

Type: System.Object
An object that represents value.

Remarks

This method is called by the set method of the StringValue property.

A typical implementation could use the TypeConverter to do the conversion.

This method should not catch exceptions, it should propagate them.

.NET Framework Security

See Also

Reference

PropertyValue Class

Microsoft.Windows.Design.PropertyEditing Namespace

PropertyEntry

PropertyValueEditor

Other Resources

WPF Designer Extensibility

Property Editing Architecture