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.

SizeFConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

 

Returns a value indicating whether the converter can convert from the type specified to the SizeF type, using the specified context.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

An ITypeDescriptorContext through which additional context can be supplied.

sourceType
Type: System.Type

A Type the represents the type you wish to convert from.

Return Value

Type: System.Boolean

true to indicate the conversion can be performed; otherwise, false.

If the specified type is a String, this method will always return true.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft