Back to Devexpress

ImageInplaceEditorInfo Class

wpf-devexpress-dot-xpf-dot-printing-0c1dfae1.md

latest2.9 KB
Original Source

ImageInplaceEditorInfo Class

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

Declaration

csharp
public class ImageInplaceEditorInfo :
    InplaceEditorInfoBase
vb
Public Class ImageInplaceEditorInfo
    Inherits InplaceEditorInfoBase

Remarks

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.

csharp
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);
vb
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)

Inheritance

Object InplaceEditorInfoBase ImageInplaceEditorInfo ImageCollectionEditorInfo

See Also

ImageInplaceEditorInfo Members

DevExpress.Xpf.Printing Namespace