共用方式為


DataGridView.CreateColumnsInstance 方法

定義

建立及傳回新的 DataGridViewColumnCollection

protected:
 virtual System::Windows::Forms::DataGridViewColumnCollection ^ CreateColumnsInstance();
protected virtual System.Windows.Forms.DataGridViewColumnCollection CreateColumnsInstance ();
abstract member CreateColumnsInstance : unit -> System.Windows.Forms.DataGridViewColumnCollection
override this.CreateColumnsInstance : unit -> System.Windows.Forms.DataGridViewColumnCollection
Protected Overridable Function CreateColumnsInstance () As DataGridViewColumnCollection

傳回

DataGridViewColumnCollection

空的 DataGridViewColumnCollection

適用於

另請參閱