Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ChartArea::Name Property

.NET Framework (current version)
 

Gets or sets the unique name of a ChartArea object.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public:
[BindableAttribute(true)]
property String^ Name {
	virtual String^ get() override;
	virtual void set(String^ value) override;
}

Property Value

Type: System::String^

A string value that represents the unique name of a ChartArea object.

The name of a ChartArea object must be unique, otherwise an exception will be thrown.

This property can be used as the indexer when retrieving a ChartArea object from the ChartAreaCollection object.

If you set this property to a zero-length string. an exception will be thrown.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft