wpf-devexpress-dot-xpf-dot-printing-0c1dfae1.md
Provides information about an image editor that you can then use to edit image content in Print Preview.
Namespace : DevExpress.Xpf.Printing
Assembly : DevExpress.Xpf.Printing.v25.2.dll
NuGet Package : DevExpress.Wpf.Printing
public class ImageInplaceEditorInfo :
InplaceEditorInfoBase
Public Class ImageInplaceEditorInfo
Inherits InplaceEditorInfoBase
You can use one of the predefined image editors in Print Preview:
| “Image” | “Signature” | “Image and Signature” |
|---|---|---|
Use the EditingFieldExtensions.RegisterEditorInfo(InplaceEditorInfoBase) method to register a custom image editor in the application. Pass an ImageInplaceEditorInfo object as the method’s parameter.
using DevExpress.Xpf.Printing;
//...
ImageEditorOptions imageEditorOptions = new ImageEditorOptions() {
AllowLoadImage = false,
AllowChangeSizeOptions = false,
AllowDraw = true,
AllowClear = false
};
ImageInplaceEditorInfo editorInfo = new ImageInplaceEditorInfo("DamageDiagram", imageEditorOptions);
EditingFieldExtensions.Instance.RegisterEditorInfo(editorInfo);
Imports DevExpress.Xpf.Printing
'...
Private imageEditorOptions As New ImageEditorOptions() With {
.AllowLoadImage = False,
.AllowChangeSizeOptions = False,
.AllowDraw = True,
.AllowClear = False
}
Private editorInfo As ImageInplaceEditorInfo = New ImageInplaceEditorInfo("DamageDiagram", imageEditorOptions)
EditingFieldExtensions.Instance.RegisterEditorInfo(editorInfo)
Object InplaceEditorInfoBase ImageInplaceEditorInfo ImageCollectionEditorInfo
See Also