TextWatermarkOptions.FontFamily

TextWatermarkOptions FontFamily property. Gets or sets font family name. The default value is Calibri.

TextWatermarkOptions.FontFamily property

Gets or sets font family name. The default value is “Calibri”.

public string FontFamily { 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