プロパティ ウィンドウでビットマップ ファイルを選択するためのユーザー インターフェイスを提供します。
この型のすべてのメンバの一覧については、BitmapEditor メンバ を参照してください。
System.Object
System.Drawing.Design.UITypeEditor
System.Drawing.Design.ImageEditor
System.Drawing.Design.BitmapEditor
Public Class BitmapEditor
Inherits ImageEditor
[C#]
public class BitmapEditor : ImageEditor
[C++]
public __gc class BitmapEditor : public ImageEditor
[JScript]
public class BitmapEditor extends ImageEditor
スレッドセーフ
この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。
解説
BitmapEditor を使用すると、プロパティに対応するビットマップ イメージを簡単に選択できます。このエディタを起動すると、ファイルを開くためのダイアログ ボックスが表示されます。このダイアログ ボックスでは、ディレクトリ間を移動してファイルを選択できます。ファイル リストには、ビットマップ (.bmp) ファイルが表示されるように、最初にフィルタが適用されます。
使用例
[Visual Basic, C#, C++] EditorAttribute を使用して、 System.Drawing.BitmapEditor にプロパティを関連付ける例を次に示します。
<EditorAttribute(GetType(System.Drawing.Design.BitmapEditor), _
GetType(System.Drawing.Design.UITypeEditor))> _
Public Property testBitmap() As Bitmap
Get
Return testBmp
End Get
Set(ByVal Value As Bitmap)
testBmp = Value
End Set
End Property
Private testBmp As Bitmap
[C#]
[EditorAttribute(typeof(System.Drawing.Design.BitmapEditor),
typeof(System.Drawing.Design.UITypeEditor))]
public Bitmap testBitmap
{
get
{
return testBmp;
}
set
{
testBmp = value;
}
}
private Bitmap testBmp;
[C++]
public:
[EditorAttribute(__typeof(System::Drawing::Design::BitmapEditor), __typeof(System::Drawing::Design::UITypeEditor))]
__property Bitmap* get_testBitmap() {
return testBmp;
}
__property void set_testBitmap(Bitmap* value) {
testBmp = value;
}
private:
Bitmap* testBmp;
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
名前空間: System.Drawing.Design
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
アセンブリ: System.Drawing.Design (System.Drawing.Design.dll 内)