Series.Name 属性

定义

获取或设置 Series 对象的唯一名称。Gets or sets the unique name of a Series object.

public:
 virtual property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public override string Name { get; set; }
member this.Name : string with get, set
Public Overrides Property Name As String

属性值

一个 string 值,该值表示数据序列的唯一名称。A string value that represents the unique name of the data series.

属性

注解

数据序列的名称必须唯一;否则, 将引发异常。The name of a data series must be unique; otherwise an exception will be thrown.

从对象中检索Series对象时,此属性可用作索引器。SeriesCollectionThis property can be used as the indexer when you retrieve a Series object from the SeriesCollection object.

如果将此属性设置为长度为零的字符串, 则会引发异常。If this property is set to a zero-length string, an exception will be thrown.

适用于