ערוך

שתף באמצעות


Legend.LegendStyle Property

Definition

Gets or sets the style of the legend.

public:
 property System::Windows::Forms::DataVisualization::Charting::LegendStyle LegendStyle { System::Windows::Forms::DataVisualization::Charting::LegendStyle get(); void set(System::Windows::Forms::DataVisualization::Charting::LegendStyle value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.LegendStyle LegendStyle { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.LegendStyle : System.Windows.Forms.DataVisualization.Charting.LegendStyle with get, set
Public Property LegendStyle As LegendStyle

Property Value

A LegendStyle enumeration value that determines the legend style. The default value is Table.

Attributes

Remarks

By default, the legend is displayed as a series of items in a table. You can specify whether to expand items in the table width-wise or height-wise by setting the TableStyle property. When the TableStyle property is set to Auto, the Chart control will determine whether to draw a wide table or a tall table, depending on the alignment and positioning of the chart. This may cause the legend to be drawn using multiple legend item columns.

There are three possible styles for a legend: Column, Row and Table. Refer to the table below for a summary of these styles:

Style Description
Column Legend items are displayed in one column, with multiple rows. Most commonly used when the legend is docked to the left or right of the chart.
Row Legend items are displayed in one row, with multiple columns. Most commonly used when the legend is docked to the top or bottom of the chart.
Table Legend items are displayed using multiple columns and rows.

Applies to