Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft