0

I am using Telerik Richtexbox version- 2012.2.607.1040 for Silverlight . I am displaying word documents in the text box using DocxFormatProvider . I wanted to know if it is possible to add watermark to every page displayed in the textbox programatically so that I dont have to insert watermark in each individual document from MS word . The richtext box doesn't support watermark natively and the only way is by adding a custom layer according to the telerik support .

4

1 に答える 1

0

Telerik UI for Silverlight コントロールの現在のバージョンでは、この機能は RadRichTextBox によってネイティブにサポートされています。

WatermarkTextSettings textSettings = new WatermarkTextSettings();
textSettings.Text = "Purple Watermark";
textSettings.RotateAngle = 30;
textSettings.Opacity = 1;
textSettings.ForegroundColor = Colors.Purple;

this.radRichTextBox.SetWatermarkText(textSettings);

Telerik の UI for Silverlight ドキュメントに詳細なヘルプ記事があります。

于 2015-03-27T22:41:54.620 に答える