ChartAreaCollection.Add(String) 方法

定义

将具有指定名称的 ChartArea 对象添加到集合中。Adds a ChartArea object with the specified name to the collection.

public:
 System::Windows::Forms::DataVisualization::Charting::ChartArea ^ Add(System::String ^ name);
public System.Windows.Forms.DataVisualization.Charting.ChartArea Add (string name);
override this.Add : string -> System.Windows.Forms.DataVisualization.Charting.ChartArea
Public Function Add (name As String) As ChartArea

参数

name
String

要添加到集合中的对象名。The name of the object to be added to the collection.

返回

ChartArea

一个 string 值,该值表示对新添加对象的引用。A string value that represents a reference to the newly added object.

注解

始终将对象添加为集合中的最后一项。Objects are always added as the last item in the collection.

name自变量指定 Name 正在添加的对象的属性。The name argument specifies the Name property of the object being added.

适用于