Skip to main content
A newer version of this page is available. .

ImageEdit Class

The editor that displays images in a popup window.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v17.2.dll

Declaration

[ToolboxTabName("DX.17.2: Common Controls")]
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "ImageEdit")]
[SmartTagAction(typeof(ImageEditActions), "Image", "Choose Image", SmartTagActionType.CloseAfterExecute)]
[DefaultBindingPropertyEx("Image")]
public class ImageEdit :
    BlobBaseEdit

Remarks

The ImageEdit class represents an editor which is used to display graphics from a bitmap, metafile, icon, JPEG, GIF or PNG file. An image editor displays its associated image in the specific dropdown window, which can be invoked either by end-users or programmatically.

ImageEdit_Class.gif

You can specify an image to be displayed in the dropdown window of an image editor by setting the ImageEdit.Image property either at design time or at run time. Size mode of the displayed image is controlled by the RepositoryItemImageEdit.SizeMode property.

An image edit control provides a context menu used to perform common operations such as copying, pasting, loading and saving of images. Use the RepositoryItemImageEdit.ShowMenu property to control whether the menu is displayed when users right-click the image editor’s dropdown window.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageEdit class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also