Back to Devexpress

DXFont.Name Property

corelibraries-devexpress-dot-drawing-dot-dxfont.md

latest2.2 KB
Original Source

DXFont.Name Property

Gets the font name.

Namespace : DevExpress.Drawing

Assembly : DevExpress.Drawing.v25.2.dll

NuGet Package : DevExpress.Drawing

Declaration

csharp
public string Name { get; }
vb
Public ReadOnly Property Name As String

Property Value

TypeDescription
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

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

DXFont Class

DXFont Members

DevExpress.Drawing Namespace