This is a migrated thread and some comments may be shown as answers.

Adding image watermark

1 Answer 211 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 14 May 2013, 11:11 AM
Hi,

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

Thanks for replying,
Henry.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 May 2013, 11:32 AM
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.
Tags
RichTextBox
Asked by
Henry
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or