Chart.Palette Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the palette for the Chart control.
public:
property System::Windows::Forms::DataVisualization::Charting::ChartColorPalette Palette { System::Windows::Forms::DataVisualization::Charting::ChartColorPalette get(); void set(System::Windows::Forms::DataVisualization::Charting::ChartColorPalette value); };
[System.ComponentModel.Bindable(true)]
public System.Windows.Forms.DataVisualization.Charting.ChartColorPalette Palette { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Palette : System.Windows.Forms.DataVisualization.Charting.ChartColorPalette with get, set
Public Property Palette As ChartColorPalette
A ChartColorPalette enumeration value that determines the palette to be used.
- Attributes
A palette is used to automatically assign colors to data elements if both of the following conditions have been met:
the data points themselves do not have colors assigned to them.
the data series that the data points belong to also does not have an assigned color.
If no series or data point colors are explicitly specified, the colors used depend on the chart type and the Chart object's palette or the palette of an associated series, if one is specified.
Σημείωση
If the Palette
property for both the Chart and Series objects is set to ChartColorPalette.None, and no color is assigned to the relevant data series or data points, the data points will not be drawn and will be displayed as "empty" areas.
Προϊόν | Εκδόσεις |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET σχόλια
.NET είναι ένα έργο ανοιχτού κώδικα. Επιλέξτε μια σύνδεση για να παρέχετε σχόλια: