ChartArea Constructors

Definition

Initializes a new instance of the ChartArea class.

Overloads

ChartArea()

Initializes a new instance of the ChartArea class.

ChartArea(String)

Initializes a new instance of the ChartArea class with the specified chart area name.

ChartArea()

Initializes a new instance of the ChartArea class.

C#
public ChartArea();

Remarks

Use this constructor to create and initialize a new instance of the ChartArea class.

Note

It is highly recommended that you use one of the Add or Insert methods of the ChartAreas collection property to add a chart area at run time.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ChartArea(String)

Initializes a new instance of the ChartArea class with the specified chart area name.

C#
public ChartArea(string name);

Parameters

name
String

The name for the new ChartArea object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1