WatermarkerContext.TextWatermark

WatermarkerContext TextWatermark property. Text to be used as a watermark.

WatermarkerContext.TextWatermark property

Text to be used as a watermark.

public string TextWatermark { get; set; }

Remarks

If both ImageWatermark and TextWatermark are specified, text watermark overrides image watermark.

Examples

Shows how to add text watermark in the document using fluent Api.

WatermarkerContext context = new WatermarkerContext();
context.TextWatermark = "Wordize";
context.TextWatermarkOptions.Color = Color.Red;

Watermarker.Create(context)
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "WatermarkerText.docx")
    .Execute();

See Also