corelibraries-devexpress-dot-xtracharts-dot-basecrosshairlabelelement.md
Gets or sets the font used to display the crosshair label’s content.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public DXFont DXFont { get; set; }
Public Property DXFont As DXFont
| Type | Description |
|---|---|
| DXFont |
A DXFont object that specifies the font used to display the crosshair label’s content.
|
Important
Use this property instead of Font to specify the font used to display the crosshair label’s content.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DXFont 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.
winforms-chart-draw-a-crosshair-cursor/CS/CustomDrawCrosshairCursor/Form1.cs#L35
groupHeaderElement.TextColor = Color.Green;
groupHeaderElement.DXFont = new DXFont("SegoeUI", 12, DXFontStyle.Bold);
winforms-chart-draw-a-crosshair-cursor/VB/CustomDrawCrosshairCursor/Form1.vb#L39
groupHeaderElement.TextColor = Color.Green
groupHeaderElement.DXFont = New DXFont("SegoeUI", 12, DXFontStyle.Bold)
' Obtain the first series.
See Also
BaseCrosshairLabelElement Class