Skip to main content
A newer version of this page is available. .

LegendItem(String, Color, Color, Size, Boolean, Boolean) Constructor

Initializes a new instance of the LegendItem class with the specified settings.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

public LegendItem(
    string text,
    Color markerColor,
    Color textColor,
    Size markerSize,
    bool markerVisible,
    bool textVisible
)

Parameters

Name Type Description
text String

The text of the newly created legend item.

markerColor Color

The color of a legend marker of a newly created legend item.

textColor Color

The color of a text of the newly created legend item.

markerSize Size

The size of a legend marker of the newly created legend item.

markerVisible Boolean

The value that specifies whether the legend item’s marker is visible.

textVisible Boolean

The value that specifies whether the legend item’s text is visible.

See Also