Series.Legend 属性

定义

获取或设置与 Legend 对象关联的系列的名称。Gets or sets the name of the series associated with the Legend object.

public:
 property System::String ^ Legend { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.SeriesLegendNameConverter))]
public string Legend { get; set; }
member this.Legend : string with get, set
Public Property Legend As String

属性值

一个 string 值,该值表示 Legend 对象的名称。A string value that represents the name of a Legend object.

属性

注解

当在设计时和运行时添加序列时, 会自动将其分配给默认Legend对象。When a series is added at both design time and run time, it is automatically assigned to the default Legend object.

如果不想在图例中显示序列, 请将此属性设置为零长度字符串, 或将IsVisibleInLegend属性设置为。 falseIf you do not want the series shown in a legend, set this property to a zero-length string, or set the IsVisibleInLegend property to false.

适用于