Back to Devexpress

CustomDrawSeriesEventArgsBase.LegendDrawOptions Property

corelibraries-devexpress-dot-xtracharts-dot-customdrawserieseventargsbase-789cb079.md

latest3.3 KB
Original Source

CustomDrawSeriesEventArgsBase.LegendDrawOptions Property

Returns the draw settings of the legend item of the series that is currently being drawn.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public DrawOptions LegendDrawOptions { get; }
vb
Public ReadOnly Property LegendDrawOptions As DrawOptions

Property Value

TypeDescription
DrawOptions

An object of the DrawOptions class descendant, which stores the drawing options of the series currently being drawn.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LegendDrawOptions 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-implement-custom-drawing-for-the-chartcontrol-that-is-bound-to-the-pivotgrid-control/CS/WindowsFormsApplication8/Form1.cs#L44

csharp
UpdateDrawOptions((BarDrawOptions)e.SeriesDrawOptions);
UpdateDrawOptions((BarDrawOptions)e.LegendDrawOptions);

winforms-implement-custom-drawing-for-the-chartcontrol-that-is-bound-to-the-pivotgrid-control/VB/WindowsFormsApplication8/Form1.vb#L36

vb
Call UpdateDrawOptions(CType(e.SeriesDrawOptions, BarDrawOptions))
    Call UpdateDrawOptions(CType(e.LegendDrawOptions, BarDrawOptions))
End Sub

See Also

Color

ActualColor2

CustomDrawSeries

CustomDrawSeriesPoint

CustomDrawSeriesEventArgsBase Class

CustomDrawSeriesEventArgsBase Members

DevExpress.XtraCharts Namespace