Share via


DataGridView 建構函式

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

命名空間:  Microsoft.Office.Tools.Excel.Controls
組件:  Microsoft.Office.Tools.Excel.v4.0.Utilities (在 Microsoft.Office.Tools.Excel.v4.0.Utilities.dll 中)

語法

'宣告
Public Sub New
public DataGridView()

備註

請不要使用 New 建構函式建立新的 DataGridView。 使用 AddDataGridView() 方法,將新的 DataGridView 加入至工作表。 如需詳細資訊,請參閱在執行階段將控制項加入至 Office 文件

.NET Framework 安全性

請參閱

參考

DataGridView 類別

DataGridView 多載

Microsoft.Office.Tools.Excel.Controls 命名空間