Skip to main content
All docs
V25.1
  • ImageWatermarkOptions Class

    Contains watermark options.

    Namespace: DevExpress.XtraRichEdit.API.Native

    Assembly: DevExpress.RichEdit.v25.1.Core.dll

    NuGet Package: DevExpress.RichEdit.Core

    Declaration

    public class ImageWatermarkOptions

    The following members return ImageWatermarkOptions objects:

    Example

    The code sample below adds an image watermark to all document pages.

    result

    using (RichEditDocumentServer wordProcessor = new RichEditDocumentServer())
    {
        wordProcessor.LoadDocument("DocumentProtection.docx");
    
        ImageWatermarkOptions imageWatermarkOptions = new ImageWatermarkOptions();
        imageWatermarkOptions.Washout = false;
        imageWatermarkOptions.Scale = 1.5;
    
        wordProcessor.Document.WatermarkManager.SetImage(Image.FromFile("DevExpress.png"), imageWatermarkOptions);
        wordProcessor.SaveDocument("DocumentProtection_new.docx", DocumentFormat.Docx);
    }
    

    Inheritance

    Object
    ImageWatermarkOptions
    See Also