ChartNamedElement 类

定义

表示多数图表元素的基类。Represents the base class for most chart elements. 图表元素(如序列、图表区域和图例)必须具有唯一的名称,并重用 ChartNamedElementCollection<T> 类提供的唯一名称生成和验证逻辑。Chart elements such as series, chart areas, and legends must have unique names, and reuse the unique name generation and validation logic provided by the ChartNamedElementCollection<T> class.

public ref class ChartNamedElement abstract : System::Web::UI::DataVisualization::Charting::ChartElement
public abstract class ChartNamedElement : System.Web.UI.DataVisualization.Charting.ChartElement
type ChartNamedElement = class
    inherit ChartElement
Public MustInherit Class ChartNamedElement
Inherits ChartElement
继承
ChartNamedElement
派生

构造函数

ChartNamedElement()

初始化 ChartNamedElement 类的新实例。Initializes a new instance of the ChartNamedElement class.

ChartNamedElement(String)

使用指定的图表元素名称初始化 ChartNamedElement 类的新实例。Initializes a new instance of the ChartNamedElement class with the specified chart element name.

属性

Name

获取或设置图表元素的名称。Gets or sets the name of the chart element.

Tag

获取或设置与此图表元素关联的对象。Gets or sets an object associated with this chart element.

(继承自 ChartElement)

方法

Dispose()

释放由 ChartElement 占用的资源。Releases the resources used by the ChartElement.

(继承自 ChartElement)
Dispose(Boolean)

释放由 ChartElement 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the ChartElement and optionally releases the managed resources.

(继承自 ChartElement)
Equals(Object)

确定指定的 Object 是否等同于当前的 ChartElementDetermines whether the specified Object is equal to the current ChartElement.

(继承自 ChartElement)
GetHashCode()

返回特定类型的哈希算法。Returns a hash function for a particular type.

(继承自 ChartElement)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前 Object 的字符串。Returns a string that represents the current Object.

(继承自 ChartElement)

适用于