PixelFormatConverter.ConvertFromString Method (String)

 

Attempts to convert a string to a PixelFormat.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public object ConvertFromString(
	string value
)

Parameters

value
Type: System.String

The string to convert to a PixelFormat.

Return Value

Type: System.Object

A new instance of PixelFormat.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value could not be converted to a known PixelFormat.

.NET Framework
Available since 3.0
Return to top
Show: