TextWatermarkOptions.Color

TextWatermarkOptions Color property. Gets or sets font color. The default value is Silver.

TextWatermarkOptions.Color property

Gets or sets font color. The default value is Silver.

public Color Color { 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