TextWatermarkOptions.Layout

TextWatermarkOptions Layout property. Gets or sets layout of the watermark. The default value is Diagonal.

TextWatermarkOptions.Layout property

Gets or sets layout of the watermark. The default value is Diagonal.

public WatermarkLayout Layout { get; set; }

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