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

RepositoryItemPictureEdit.ShowEditMenuItem Property

Gets or sets whether the control’s context menu contains the Edit command that invokes the Image Editor. The Image Editor allows users to perform basic edit operations and then save the result back to the PictureEdit control.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean ShowEditMenuItem { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

DefaultBoolean.True if the Edit menu command is available; DefaultBoolean.Default or DefaultBoolean.False if the Edit menu item is hidden.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

Set the ShowEditMenuItem property to True to allow users to invoke the Image Editor from the control’s context menu, using the Edit command.

image

The Image Editor dialog provides basic image edit operations:

  • Crop and straighten
  • Adjust brightness, contrast and saturation
  • Mirror
  • Rotate
  • etc.

To open the Image Editor from code, use the PictureEdit.ShowImageEditorDialog method.

Handle the PictureEdit.ImageEditorDialogShowing/RepositoryItemPictureEdit.ImageEditorDialogShowing event to customize the Image Editor dialog, add custom edit tools, and change the settings of existing edit tools (for instance, add custom aspect ratios for crop operations).

See Also