Bagikan melalui


DesignerActionService.GetComponentDesignerActions Metode

Definisi

Mengambil tag pintar model penarikan yang terkait dengan komponen.

protected:
 virtual void GetComponentDesignerActions(System::ComponentModel::IComponent ^ component, System::ComponentModel::Design::DesignerActionListCollection ^ actionLists);
protected virtual void GetComponentDesignerActions(System.ComponentModel.IComponent component, System.ComponentModel.Design.DesignerActionListCollection actionLists);
abstract member GetComponentDesignerActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
override this.GetComponentDesignerActions : System.ComponentModel.IComponent * System.ComponentModel.Design.DesignerActionListCollection -> unit
Protected Overridable Sub GetComponentDesignerActions (component As IComponent, actionLists As DesignerActionListCollection)

Parameter

component
IComponent

Komponen yang dikaitkan dengan tag pintar.

actionLists
DesignerActionListCollection

Koleksi untuk menambahkan tag pintar terkait.

Pengecualian

Satu atau kedua parameter adalah null.

Keterangan

Metode GetComponentDesignerActions ini adalah metode pembantu GetComponentActions untuk metode . GetComponentDesignerActions mencari tag pintar model penarikan jenis Component, lalu menambahkannya ke koleksi yang disediakan actionLists .

Jika pengembang komponen tidak secara eksplisit menyediakan koleksi tag pintar melalui ActionLists properti perancangnya, metode ini akan menggunakan kembali entri menu pintasan waktu desain, yang diperoleh melalui Verbs properti perancang.

Berlaku untuk

Lihat juga