Class PictureWatermark
Represents a picture watermark on a printable page.
Inherited Members
Namespace: Telerik.Reporting.Drawing
Assembly: Telerik.Reporting.dll
Syntax
public class PictureWatermark : Watermark, IExpressionContainer, ICloneable
Constructors
PictureWatermark()
Declaration
public PictureWatermark()
PictureWatermark(PictureWatermark)
Declaration
public PictureWatermark(PictureWatermark watermark)
Parameters
PictureWatermark
watermark
|
Properties
Image
Gets or sets the image of the watermark to be printed on the page.
Declaration
public object Image { get; set; }
Property Value
System.Object
The image of the watermark to be printed on the page. |
Remarks
The specified image can be in one of the following supported formats: an object instance inherited from System.Drawing.Image; an array of bytes containing binary image data; a local file path (relative or absolute) or an URL to an external image file. Instead of providing the image directly, it is possible to specify it indirectly as an expression that gets evaluated at runtime for each printable page. The result of the evaluation should be of one of the support types enumerated above. If the image is null (Nothing in Visual Basic), or if the specified expression evaluates to null (Nothing in Visual Basic), the watermark is not printed on the current page.
Examples
The following expression prints a watermark on every second page:
= If(PageNumber % 2 = 0, "Watermark.png", Null)
Sizing
Gets or sets the sizing mode of the watermark image on the printable page.
Declaration
public WatermarkSizeMode Sizing { get; set; }
Property Value
WatermarkSizeMode
A ImageSizeMode value that specifies the sizing mode of the watermark image on the printable page. |
Methods
GetStrings()
Declaration
protected override IEnumerable<string> GetStrings()
Returns
System.Collections.Generic.IEnumerable<System.String>
|
Overrides
ResetSizingCore()
Declaration
protected virtual void ResetSizingCore()
ShouldSerializeSizingCore()
Declaration
protected virtual bool ShouldSerializeSizingCore()
Returns
System.Boolean
|