Back to Devexpress

BaseCrosshairLabelElement.DXFont Property

corelibraries-devexpress-dot-xtracharts-dot-basecrosshairlabelelement.md

latest2.6 KB
Original Source

BaseCrosshairLabelElement.DXFont Property

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

Declaration

csharp
public DXFont DXFont { get; set; }
vb
Public Property DXFont As DXFont

Property Value

TypeDescription
DXFont

A DXFont object that specifies the font used to display the crosshair label’s content.

|

Remarks

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

csharp
groupHeaderElement.TextColor = Color.Green;
groupHeaderElement.DXFont = new DXFont("SegoeUI", 12, DXFontStyle.Bold);

winforms-chart-draw-a-crosshair-cursor/VB/CustomDrawCrosshairCursor/Form1.vb#L39

vb
groupHeaderElement.TextColor = Color.Green
groupHeaderElement.DXFont = New DXFont("SegoeUI", 12, DXFontStyle.Bold)
' Obtain the first series.

See Also

BaseCrosshairLabelElement Class

BaseCrosshairLabelElement Members

DevExpress.XtraCharts Namespace