ImageEditor Class
.NET Framework 3.0
Provides a user interface for selecting an image for a property in a property grid.
Namespace: System.Drawing.Design
Assembly: System.Drawing.Design (in system.drawing.design.dll)
Assembly: System.Drawing.Design (in system.drawing.design.dll)
An ImageEditor is a UITypeEditor that provides a user interface for the user to select an image for a property. When the user starts the editor, it displays an Open File dialog box that enables the user to navigate to a directory and select a file. The file list is initially filtered by the default file name extensions for the editor.
The following code example uses an EditorAttribute to associate the ImageEditor with a property.
<EditorAttribute(GetType(System.Drawing.Design.ImageEditor), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property testImage() As Image Get Return testImg End Get Set testImg = value End Set End Property Private testImg As Image
/** @attribute EditorAttribute(System.Drawing.Design.ImageEditor.class,
System.Drawing.Design.UITypeEditor.class)
*/
/** @property
*/
public Image get_TestImage()
{
return testImg;
} //get_TestImage
/** @property
*/
public void set_TestImage(Image value)
{
testImg = value;
} //set_TestImage
private Image testImg;
- SecurityPermission for access to unmanaged code. Associated enumeration: UnmanagedCode
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: