Share via


DesignerOptionService.PopulateOptionCollection 方法

定義

protected:
 virtual void PopulateOptionCollection(System::ComponentModel::Design::DesignerOptionService::DesignerOptionCollection ^ options);
protected virtual void PopulateOptionCollection (System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection options);
abstract member PopulateOptionCollection : System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection -> unit
override this.PopulateOptionCollection : System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection -> unit
Protected Overridable Sub PopulateOptionCollection (options As DesignerOptionService.DesignerOptionCollection)

參數

options
DesignerOptionService.DesignerOptionCollection

要填入的集合。

備註

PopulateOptionCollection使用者第一次要求選項集合的子選項或屬性時,會視需要呼叫 方法。

您可以藉由呼叫 CreateOptionCollection 方法,並將這個集合傳遞為父代,以填options入集合。

適用於

另請參閱