Back to Devexpress

XRPictureBox.EditOptions Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrpicturebox-c55b5a07.md

latest3.7 KB
Original Source

XRPictureBox.EditOptions Property

Provides access to the options that define whether and how an image can be edited in Print Preview.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[SRCategory(ReportStringId.CatBehavior)]
public ImageEditOptions EditOptions { get; }
vb
<SRCategory(ReportStringId.CatBehavior)>
Public ReadOnly Property EditOptions As ImageEditOptions

Property Value

TypeDescription
ImageEditOptions

Provides edit options for the PictureBox report control.

|

Remarks

Set the ImageEditOptions.Enabled option to true to enable image editing for the PictureBox report control.

The ImageEditOptions.EditorName option allows you to specify which editor to use to edit the image.

ImageSignatureImage and Signature (default)

The following code demonstrates how to set image edit options in the method that is called before the CreateDocument method is called.

csharp
using DevExpress.XtraPrinting;
// ...

private void EnableDocumentEditing(XtraReport1 report) {
    report.xrPictureBox.EditOptions.Enabled = true;
    report.xrPictureBox.EditOptions.EditorName = "Signature";
}
vb
Imports DevExpress.XtraPrinting
' ...

Private Sub EnableDocumentEditing(report As XtraReport1)
    report.xrPictureBox.EditOptions.Enabled = True
    report.xrPictureBox.EditOptions.EditorName = "Signature"
End Sub

You can enlarge the list of possible editors by adding a custom image editor. Use the RegisterImageEditor(WinForms)/RegisterImageEditorInfo(WPF)/RegisterImageEditor(Web) method to register an editor with a specified name and a specific menu item set.

Refer to the Edit Content in Print Preview topic for details.

See Also

XRPictureBox Class

XRPictureBox Members

DevExpress.XtraReports.UI Namespace