次の方法で共有


ImageFormatConverter.ConvertFrom メソッド (ITypeDescriptorContext, CultureInfo, Object)

指定のオブジェクトを ImageFormat オブジェクトに変換します。

Overrides Overloads Public Function ConvertFrom( _
   ByVal context As ITypeDescriptorContext, _   ByVal culture As CultureInfo, _   ByVal value As Object _) As Object
[C#]
public override object ConvertFrom(ITypeDescriptorContextcontext,CultureInfoculture,objectvalue);
[C++]
public: Object* ConvertFrom(ITypeDescriptorContext* context,CultureInfo* culture,Object* value);
[JScript]
public override function ConvertFrom(
   context : ITypeDescriptorContext,culture : CultureInfo,value : Object) : Object;

パラメータ

  • context
    書式指定コンテキスト。このオブジェクトを使用して、このコンバータを呼び出している環境についての追加情報を取得できます。この値は null 参照 (Visual Basic では Nothing) になる場合があるため、常に確認してください。また、コンテキスト オブジェクト上のプロパティも null 参照 (Nothing) を返す場合があります。
  • culture
    特定のカルチャで使用される書式指定規約を指定する CultureInfo オブジェクト。
  • value
    変換対象のオブジェクト。

戻り値

変換後のオブジェクト。変換を実行できなかった場合は、例外が渡されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ImageFormatConverter クラス | ImageFormatConverter メンバ | System.Drawing 名前空間 | ImageFormatConverter.ConvertFrom オーバーロードの一覧