Share via


PropertyValue.ConvertValueToString Method

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

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

Syntax

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

Parameters

Return Value

Type: System.String
A string that represents value.

Remarks

This method is called by the get 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

PropertyValueCollection

Other Resources

WPF Designer Extensibility

Property Editing Architecture