Bagikan melalui


DesignerActionService.GetComponentDesignerActions Metode

Definisi

Mengambil tag pintar model tarik 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 terkait dengan tag pintar.

actionLists
DesignerActionListCollection

Koleksi untuk menambahkan tag pintar terkait.

Pengecualian

Salah satu atau kedua parameternya adalah null.

Keterangan

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

Jika pengembang komponen tidak secara eksplisit menyediakan kumpulan 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