BitmapEditor Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Provides a user interface for selecting bitmap files in a property browser.
public ref class BitmapEditor : System::Drawing::Design::ImageEditor
public class BitmapEditor : System.Drawing.Design.ImageEditor
[System.Security.SecurityCritical]
public class BitmapEditor : System.Drawing.Design.ImageEditor
[System.CLSCompliant(false)]
public class BitmapEditor : System.Drawing.Design.ImageEditor
type BitmapEditor = class
inherit ImageEditor
[<System.Security.SecurityCritical>]
type BitmapEditor = class
inherit ImageEditor
[<System.CLSCompliant(false)>]
type BitmapEditor = class
inherit ImageEditor
Public Class BitmapEditor
Inherits ImageEditor
- Inheritance
- Attributes
The following code example uses an EditorAttribute to associate the BitmapEditor with a property.
[EditorAttribute(System::Drawing::Design::BitmapEditor::typeid,System::Drawing::Design::UITypeEditor::typeid)]
Bitmap^ get()
{
return testBmp;
}
void set( Bitmap^ value )
{
testBmp = value;
}
}
private:
Bitmap^ testBmp;
[EditorAttribute(typeof(System.Drawing.Design.BitmapEditor),
typeof(System.Drawing.Design.UITypeEditor))]
public Bitmap testBitmap
{
get
{
return testBmp;
}
set
{
testBmp = value;
}
}
private Bitmap testBmp;
<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
The BitmapEditor class provides a simple way to select a bitmap image for a property. Starting the editor displays an Open File dialog box that allows directory navigation and selecting a file. The file list is initially filtered for bitmap (.bmp) files.
Bitmap |
Initializes a new instance of the BitmapEditor class. |
Bitmap |
Provides the list of default file extensions used to filter the file list. |
Is |
Gets a value indicating whether drop-down editors should be resizable by the user. (Inherited from UITypeEditor) |
Edit |
Edits the value of the specified object using the editor style indicated by the GetEditStyle() method. (Inherited from UITypeEditor) |
Edit |
Edits the specified object value using the edit style provided by the GetEditStyle(ITypeDescriptorContext) method. (Inherited from ImageEditor) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Gets the editor style used by the EditValue(IServiceProvider, Object) method. (Inherited from UITypeEditor) |
Get |
Gets the editing style of the EditValue(ITypeDescriptorContext, IServiceProvider, Object) method. (Inherited from ImageEditor) |
Get |
Gets the extensions for the file list filter that the bitmap editor will initially use to filter the file list. |
Get |
Gets the description for the default file list filter provided by this editor. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets an array of supported image types. (Inherited from ImageEditor) |
Get |
Indicates whether this editor supports painting a representation of an object's value. (Inherited from UITypeEditor) |
Get |
Gets a value indicating whether this editor supports painting a representation of an object's value. (Inherited from ImageEditor) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Load |
Loads an image from the specified stream. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Paint |
Paints a representation of the value of the specified object to the specified canvas. (Inherited from UITypeEditor) |
Paint |
Paints a value indicated by the specified PaintValueEventArgs. (Inherited from ImageEditor) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: