WatermarkLayout Enum
Wordize.Watermarking.WatermarkLayout enum. Defines layout of the watermark relative to the watermark center.
WatermarkLayout enumeration
Defines layout of the watermark relative to the watermark center.
public enum WatermarkLayout
Values
Name | Value | Description |
---|---|---|
Horizontal | 0 | Horizontal watermark layout. Corresponds to 0 degrees of rotation. |
Diagonal | 315 | Diagonal watermark layout. Corresponds to 315 degrees of rotation. |
Examples
Shows how to add text watermark in the document with custom text watermark options.
TextWatermarkOptions textWatermarkOptions = new TextWatermarkOptions();
textWatermarkOptions.FontFamily = "Arial";
textWatermarkOptions.FontSize = 48;
textWatermarkOptions.IsSemitrasparent = false;
textWatermarkOptions.Color = Color.Red;
textWatermarkOptions.Layout = WatermarkLayout.Horizontal;
Watermarker.SetText(MyDir + "Simple.docx", ArtifactsDir + "Watermarker.SetText.pdf", "Wordize", textWatermarkOptions);
See Also
- namespace Wordize.Watermarking
- assembly Wordize