corelibraries-devexpress-dot-drawing-dot-dxfont.md
Gets the font name.
Namespace : DevExpress.Drawing
Assembly : DevExpress.Drawing.v25.2.dll
NuGet Package : DevExpress.Drawing
public string Name { get; }
Public ReadOnly Property Name As String
| Type | Description |
|---|---|
| String |
The name of the font.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Name 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
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
textWatermark.TextDirection = DirectionMode.ForwardDiagonal
textWatermark.Font = New DXFont(textWatermark.Font.Name, 40)
textWatermark.ForeColor = Color.DodgerBlue
See Also