Adding image watermark

2 posts, 0 answers
  1. Henry
    Henry avatar
    44 posts
    Member since:
    Feb 2013

    Posted 14 May 2013 Link to this post

    Hi,

    I need to give an image watermark to my richtextbox. Is it possible from C#?

    Thanks for replying,
    Henry.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 May 2013 Link to this post

    Hi Henry,

    You can create custom watermarks using the WatermarkImageSettings classes and the respective methods of RadRichTextBox -  SetWatermarkImage(). Please check the following code snippet.

    C#:
    WatermarkImageSettings imageSettings = new WatermarkImageSettings();
    imageSettings.UriSource = uri;
    imageSettings.Size = new Size(500, 665);
    this.editor.SetWatermarkImage(imageSettings);

    Thanks,
    Shinu.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top