Back to Devexpress

PageWatermark.Font Property

corelibraries-devexpress-dot-xtraprinting-dot-drawing-dot-pagewatermark.md

latest2.4 KB
Original Source

PageWatermark.Font Property

Gets or sets the font of the PageWatermark.

Namespace : DevExpress.XtraPrinting.Drawing

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[XRLocalizable(true)]
public DXFont Font { get; set; }
vb
<XRLocalizable(True)>
Public Property Font As DXFont

Property Value

TypeDescription
DXFont

The font of the PageWatermark.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Font property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-watermark-different-pages/CS/Form1.cs#L41

csharp
textWatermark.TextDirection = DirectionMode.ForwardDiagonal;
textWatermark.Font = new DXFont(textWatermark.Font.Name, 40);
textWatermark.ForeColor = Color.DodgerBlue;

reporting-winforms-watermark-different-pages/VB/Form1.vb#L43

vb
textWatermark.TextDirection = DirectionMode.ForwardDiagonal
textWatermark.Font = New DXFont(textWatermark.Font.Name, 40)
textWatermark.ForeColor = Color.DodgerBlue

See Also

PageWatermark Class

PageWatermark Members

DevExpress.XtraPrinting.Drawing Namespace