LegendItem.Color Property
Definition
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 color of a legend item.
public:
property System::Drawing::Color Color { System::Drawing::Color get(); void set(System::Drawing::Color value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public System.Drawing.Color Color { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.TypeConverter(typeof(System.Drawing.ColorConverter))>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.Color : System.Drawing.Color with get, set
Public Property Color As Color
Property Value
A Color value. The default color is Empty.
- Attributes
Remarks
This Color property is one several related properties that get or set the color of many chart elements; it can be set to any ARGB (alpha, red, green, blue) value.
If this property is set for both a data point and its series, the data point color will have precedence. The series color will only be used for data points that do not define their own color.
If a custom legend item uses a marker, this property will determine the marker color. However, if the MarkerColor property is set, its value then has precedence.
This property will be ignored if the Image property specifies an image to be used for the legend item symbol.
Note
This property is applicable only to LegendCell objects with a LegendCellType of either SeriesSymbol or Image.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για