Class TextWatermarkOptions
Namespace: Aspose.Words
Assembly: Aspose.Words.dll (25.4.0)
Contains options that can be specified when adding a watermark with text.
To learn more, visit the Working with Watermark documentation article.
public class TextWatermarkOptions
Inheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
TextWatermarkOptions()
public TextWatermarkOptions()
Properties
Color
Gets or sets font color. The default value is System.Drawing.Color.Silver.
public Color Color { get; set; }
Property Value
FontFamily
Gets or sets font family name. The default value is “Calibri”.
public string FontFamily { get; set; }
Property Value
FontSize
Gets or sets a font size. The default value is 0 - auto.
public float FontSize { get; set; }
Property Value
Remarks
Valid values range from 0 to 65.5 inclusive.
Auto font size means that the watermark will be scaled to its max width and max height relative to the page margins.
Exceptions
Throws when argument was out of the range of valid values.
IsSemitrasparent
Gets or sets a boolean value which is responsible for opacity of the watermark.
The default value is true
.
public bool IsSemitrasparent { get; set; }
Property Value
Layout
Gets or sets layout of the watermark. The default value is Aspose.Words.WatermarkLayout.Diagonal.
public WatermarkLayout Layout { get; set; }